docker install guide in ubuntu
Docker install in ubuntu 16.04
———————————————————————————————————————————————-
$ sudo apt-get install curl
———————————————————————————————————————————————-
$ curl -fsSL https://get.docker.com/ | sudo sh
———————————————————————————————————————————————-\
Executing docker install script, commit: 36b78b2\
- sh -c apt-get update -qq >/dev/null
W: The repository ‘http://download.tizen.org/tools/latest-release/Ubuntu_16.04 Release’ is not signed.\ - sh -c apt-get install -y -qq apt-transport-https ca-certificates curl >/dev/null\
-
sh -c curl -fsSL “https://download.docker.com/linux/ubuntu/gpg” apt-key add -qq - >/dev/null\ - sh -c echo “deb [arch=amd64] https://download.docker.com/linux/ubuntu xenial edge” > /etc/apt/sources.list.d/docker.list\
- [ ubuntu = debian ]\
- sh -c apt-get update -qq >/dev/null
W: The repository ‘http://download.tizen.org/tools/latest-release/Ubuntu_16.04 Release’ is not signed.\ - sh -c apt-get install -y -qq –no-install-recommends docker-ce >/dev/null\
- sh -c docker version
Client:
Version: 18.04.0-ce
API version: 1.37
Go version: go1.9.4
Git commit: 3d479c0
Built: Tue Apr 10 18:20:32 2018
OS/Arch: linux/amd64
Experimental: false
Orchestrator: swarm
Server:
Engine:
Version: 18.04.0-ce
API version: 1.37 (minimum version 1.12)
Go version: go1.9.4
Git commit: 3d479c0
Built: Tue Apr 10 18:18:40 2018
OS/Arch: linux/amd64
Experimental: false
If you would like to use Docker as a non-root user, you should now consider
adding your user to the “docker” group with something like:
sudo usermod -aG docker your-user
Remember that you will have to log out and back in for this to take effect!
WARNING: Adding a user to the “docker” group will grant the ability to run
containers which can be used to obtain root privileges on the
docker host.
Refer to https://docs.docker.com/engine/security/security/#docker-daemon-attack-surface
for more information.
———————————————————————————————————————————————-
complete install docker.
———————————————————————————————————————————————–
reference
init guide
docker_command
docker_proxy setting