DockerOnUbuntu: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(fix syntax for DockerOnUbuntu) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
= Installation = | = Installation = | ||
< | <syntaxhighlight lang=bash> | ||
# curl -fsSL https://get.docker.com/ | sh | # curl -fsSL https://get.docker.com/ | sh | ||
... | ... | ||
Line 26: | Line 26: | ||
Remember that you will have to log out and back in for this to take effect! | Remember that you will have to log out and back in for this to take effect! | ||
</ | </syntaxhighlight> | ||
= | = Download a container = | ||
Download a container and run bash (-i interactive, -t tty) | Download a container and run bash (-i interactive, -t tty) | ||
< | <syntaxhighlight lang=bash> | ||
$ docker run -it ubuntu bash | $ docker run -it ubuntu bash | ||
</ | </syntaxhighlight> | ||
= Enable Rest API = | = Enable Rest API = | ||
Line 38: | Line 38: | ||
= Advanced Rest Client Application (Chrome) = | = Advanced Rest Client Application (Chrome) = | ||
< | <syntaxhighlight lang=bash> | ||
http://drew-desktop:4243/images/json | http://drew-desktop:4243/images/json | ||
</ | </syntaxhighlight> |
Latest revision as of 00:42, 25 January 2018
Installation
# 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
Download a container and run bash (-i interactive, -t tty)
$ docker run -it ubuntu bash
Enable Rest API
http://www.campalus.com/enable-remote-tcp-connections-to-docker-host-running-ubuntu-15-04/
Advanced Rest Client Application (Chrome)
http://drew-desktop:4243/images/json