Installation of Docker and running hello world image
Docker is quite an interesting topic, When I started
installing docker I run into the problem that it cannot connect to internet,
giving me the following error
(default) Waiting for an IP …
Solution:
Step 1. Power Off running default ( Running App ) in your
Virual Box.
Step 2. Remove
default ( Running App )
Step 3. Start docker Quickstart terminal
Verify ( Go to the Quickstart terminal and type )
1. $ docker version
You will notice the below output, may be versions can vary
Client:
Version: 1.11.1
API version: 1.23
Go version: go1.5.4
Git commit: 5604cbe
Built: Tue Apr 26 23:44:17 2016
OS/Arch: windows/amd64
Server:
Version: 1.12.1
API version: 1.24
Go version: go1.6.3
Git commit: 23cf638
Built: Thu Aug 18 17:52:38 2016
OS/Arch: linux/amd64
2. $ docker run hello-world
Hello from Docker!
This message shows that your installation appears to be
working correctly.
To generate this message, Docker took the following steps:
1. The Docker client
contacted the Docker daemon.
2. The Docker daemon
pulled the "hello-world" image from the Docker Hub.
3. The Docker daemon
created a new container from that image which runs the
executable that
produces the output you are currently reading.
4. The Docker daemon
streamed that output to the Docker client, which sent it
to your terminal.
To try something more ambitious, you can run an Ubuntu
container with:
$ docker run -it
ubuntu bash
Share images, automate workflows, and more with a free
Docker Hub account:
https://hub.docker.com
For more examples and ideas, visit:
https://docs.docker.com/engine/userguide/
3. $ docker ps -a
CONTAINER ID
IMAGE COMMAND CREATED
STATUS PORTS NAMES
a122f2190be5
hello-world
"/hello"
About a minute ago
Exited (0) About a
minute ago
elated_hawking
d259042dffca hello-world "/hello" 22 minutes ago
Exited (0) 22 minutes
ago
romantic_ride