Ubuntu Desktop 16.04下安装Docker

前端之家收集整理的这篇文章主要介绍了Ubuntu Desktop 16.04下安装Docker前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

add key

sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D

add sources

sudo apt-add-repository 'deb https://apt.dockerproject.org/repo ubuntu-xenial main'

update

apt update

install

apt install -y docker-engine

configuration

user config

sudo usermod -aG docker $(whoami)

Using the Docker Command

docker [option] [command] [arguments]

猜你在找的Ubuntu相关文章