Docker Client Operations: Difference between revisions
Jump to navigation
Jump to search
(→import) |
(→images) |
||
Line 20: | Line 20: | ||
<pre> | <pre> | ||
docker images | docker images | ||
</pre> | |||
<pre> | |||
REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE | REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE | ||
db latest c0e4c08c3981 3 minutes ago 624.1 MB | db latest c0e4c08c3981 3 minutes ago 624.1 MB |
Revision as of 14:18, 19 April 2017
Internal
Commands
build
Takes a Dockerfile and produces a Docker image.
exec
docker exec -it <image-name> bash
images
docker images
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
import
Create a new filesystem image from the contents of a tar file.
gunzip < db.tar.gz | docker import - db
ps
version
docker version
Scenarios
TO RELOCATE