Docker Client Operations: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 20: Line 20:


Takes a [[Docker_Concepts#Dockerfile|Dockerfile]] and produces a [[Docker_Concepts#Container_Image|Docker image]].
Takes a [[Docker_Concepts#Dockerfile|Dockerfile]] and produces a [[Docker_Concepts#Container_Image|Docker image]].
==images==
List images.
<pre>
docker images
</pre>
<pre>
REPOSITORY          TAG                IMAGE ID            CREATED            VIRTUAL SIZE
db                  latest              c0e4c08c3981        3 minutes ago      624.1 MB
rabbitmq            latest              3bb7a967fc6c        7 days ago          179.4 MB
</pre>


==import==
==import==

Revision as of 14:44, 19 April 2017

Internal

Commands

Queries

images
ps
version

Executions

run
exec

build

Takes a Dockerfile and produces a Docker image.

import

Create a new filesystem image from the contents of a tar archive.

gunzip < db.tar.gz | docker import - db

load

Load an image from a tar archive.

ps

List containers.

version

docker version

Scenarios

TO RELOCATE

Running RabittMQ

Running a database