DockerOnUbuntu: Difference between revisions

From DrewWiki
Jump to navigation Jump to search
(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...")
 
(fix syntax for DockerOnUbuntu)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<pre>
= Installation =
<syntaxhighlight lang=bash>
# curl -fsSL https://get.docker.com/ | sh
# curl -fsSL https://get.docker.com/ | sh
...
...
Line 25: 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!
</pre>
</syntaxhighlight>


= Download a container =
Download a container and run bash (-i interactive, -t tty)
Download a container and run bash (-i interactive, -t tty)
<pre>
<syntaxhighlight lang=bash>
$ docker run -it ubuntu bash
$ docker run -it ubuntu bash
</pre>
</syntaxhighlight>
 
= Enable Rest API =
http://www.campalus.com/enable-remote-tcp-connections-to-docker-host-running-ubuntu-15-04/
 
= Advanced Rest Client Application (Chrome) =
<syntaxhighlight lang=bash>
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