如何在Ubuntu 16.04 LTS上安装Docker
Easiest would be to run this in your bash terminal: wget -qO- https://get.docker.com/ | sh
wget -qO- https://get.docker.com/ | sh
You can look at these for instructions:-
For installing private docker registry, use this link. It should work fine for ubuntu16.04:-
In Ubuntu, you can install Docker by:
curl -sSL https://get.docker.com/ | sh
Keep in mind that when installing Docker in Ubuntu, you just install Docker, but when you install it on Windows 10 and Mac OS X, it installs also docker-compose
and docker-machine
.
If you also want to install docker-machine
run: (if you want a different version change v0.12.2
to the version you want)
curl -L https://github.com/docker/machine/releases/download/v0.12.2/docker-machine-`uname -s`-`uname -m` >/tmp/docker-machine &&
chmod +x /tmp/docker-machine &&
sudo cp /tmp/docker-machine /usr/local/bin/docker-machine
Finally, if you also want to install docker-compose
, replace, and run: (if you want a different version change 1.15.0
to the version you want)
curl -L https://github.com/docker/compose/releases/download/1.15.0/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose &&
chmod +x /usr/local/bin/docker-compose
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.