-
Notifications
You must be signed in to change notification settings - Fork 0
ubuntu install docker
Xu Gang edited this page Aug 19, 2020
·
4 revisions
Step 1: Update Software Repositories It’s a good idea to update the local database of software to make sure you’ve got access to the latest revisions.
Open a terminal window and type:
sudo apt-get update
Allow the operation to complete.
Step 2: Uninstall Old Versions of Docker Next, it’s recommended to uninstall any old Docker software before proceeding.
Use the command:
sudo apt-get remove docker docker-engine docker.io
Step 3: Install Docker on Ubuntu 18.04 To install Docker on Ubuntu, in the terminal window enter the command:
sudo apt install docker.io
Step 4: Start and Automate Docker The Docker service needs to be setup to run at startup. To do so, type in each command followed by enter:
sudo systemctl start docker
sudo systemctl enable docker
管理员需要取得hub的账户密码。
sudo useradd -m -d /home/username username
sudo passwd username
管理员需要获取 hub 中 docker 的使用权限。
sudo usermod -aG docker username
sudo chmod 666 /var/run/docker.sock
Xu Gang m13001271022 [at] 163.com Tsinghua University