Get the App
SLTechnology News&Howtos  ›  Servers  › 

Ubuntu install docker-ce

Shulou Source: shulou.com Published: 2022-06-03 09:57:04 09月21日 Update

1. Uninstall the existing docker:apt-get remove docker docker-engine docker.io2. Install: apt-get install\ apt-transport-https\ ca-certificates\ curl\ software-properties-common3.curl-fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add- 4.apt-key fingerprint 0EBFCD885.add-apt-repository\ "deb [arch=amd64] https://download.docker.com/linux/ubuntu\ $(lsb_release-cs)\ stable" 6.apt-get update7.apt-get install docker-ce

Note:

Custom network

Docker network create-- subnet 10.136.22.0 take 24 cnpro

View the created bridge

Docker network ls

Common docker uses:

Docker run-d-- name test\-- privileged-- restart=always\-- net uspro-- ip 172.31.3.11\-v / opt/app/test:/usr/local/tomcat/webapps/ROOT\-v / opt/app/logs/test:/usr/local/tomcat/logs\-v / storage:/storage\-p 8081 privileged 8080\ tomcat:8.0

Reference official website: https://docs.docker.com/install/linux/docker-ce/ubuntu/#docker-ee-customers

Tags: Remarks Common Network Bridge reference Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Information OPPO Reno macOS Microsoft Xiaomi