DockerOnUbuntu

From DrewWiki
Revision as of 23:00, 14 February 2016 by Drew (talk | contribs) (Created page with "<pre> # curl -fsSL https://get.docker.com/ | sh ... + sudo -E sh -c docker version Client: Version: 1.10.1 API version: 1.22 Go version: go1.5.3 Git commit: 9e83...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
# curl -fsSL https://get.docker.com/ | sh
...
+ sudo -E sh -c docker version
Client:
 Version:      1.10.1
 API version:  1.22
 Go version:   go1.5.3
 Git commit:   9e83765
 Built:        Thu Feb 11 19:32:54 2016
 OS/Arch:      linux/amd64

Server:
 Version:      1.10.1
 API version:  1.22
 Go version:   go1.5.3
 Git commit:   9e83765
 Built:        Thu Feb 11 19:32:54 2016
 OS/Arch:      linux/amd64

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 drew

Remember that you will have to log out and back in for this to take effect!

Download a container and run bash (-i interactive, -t tty)

$ docker run -it ubuntu bash