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]
原文地址:http://blog.51cto.com/qwfys200/2071590
时间: 2024-10-10 12:32:14