docker
no way to compare when less than two revisions
Rozdíly
Zde můžete vidět rozdíly mezi vybranou verzí a aktuální verzí dané stránky.
Předchozí verzePoslední revize | |||
— | docker [2015/06/12 15:03] – [Notes] blazek | ||
---|---|---|---|
Řádek 1: | Řádek 1: | ||
+ | ====== Docker ====== | ||
+ | * https:// | ||
+ | * https:// | ||
+ | |||
+ | **Registr Docker Hub:** https:// | ||
+ | |||
+ | **Docker Engine Installation: | ||
+ | |||
+ | ===== Notes ===== | ||
+ | |||
+ | overlay filesystems (mount) | ||
+ | |||
+ | ===== Try It! ===== | ||
+ | |||
+ | * https:// | ||
+ | |||
+ | ==== Docker help ==== | ||
+ | |||
+ | < | ||
+ | you@tutorial: | ||
+ | Usage: Docker [OPTIONS] COMMAND [arg...] | ||
+ | -H=" | ||
+ | |||
+ | A self-sufficient runtime for linux containers. | ||
+ | |||
+ | Commands: | ||
+ | |||
+ | attach | ||
+ | build Build a container from a Dockerfile | ||
+ | commit | ||
+ | diff Inspect changes on a container' | ||
+ | export | ||
+ | history | ||
+ | images | ||
+ | import | ||
+ | info Display system-wide information | ||
+ | insert | ||
+ | inspect | ||
+ | kill Kill a running container | ||
+ | login | ||
+ | logs Fetch the logs of a container | ||
+ | port Lookup the public-facing port which is NAT-ed to PRIVATE_PORT | ||
+ | ps List containers | ||
+ | pull Pull an image or a repository from the Docker registry server | ||
+ | push Push an image or a repository to the Docker registry server | ||
+ | restart | ||
+ | rm Remove a container | ||
+ | rmi | ||
+ | run Run a command in a new container | ||
+ | search | ||
+ | start Start a stopped container | ||
+ | stop Stop a running container | ||
+ | tag Tag an image into a repository | ||
+ | version | ||
+ | wait Block until a container stops, then print its exit code | ||
+ | </ | ||
+ | |||
+ | ==== Docker version ==== | ||
+ | |||
+ | < | ||
+ | you@tutorial: | ||
+ | Docker Emulator version 0.1.3 | ||
+ | |||
+ | Emulating: | ||
+ | Client version: 0.5.3 | ||
+ | Server version: 0.5.3 | ||
+ | Go version: go1.1 | ||
+ | </ | ||
+ | |||
+ | ==== Docker search ==== | ||
+ | |||
+ | < | ||
+ | you@tutorial: | ||
+ | Found 1 results matching your query (" | ||
+ | NAME DESCRIPTION | ||
+ | learn/ | ||
+ | </ | ||
+ | |||
+ | ==== Docker pull ==== | ||
+ | |||
+ | Docker pull < | ||
+ | |||
+ | < | ||
+ | you@tutorial: | ||
+ | Pulling repository learn/ | ||
+ | Pulling image 8dbd9e392a964056420e5d58ca5cc376ef18e2de93b5cc90e868a1bbc8318c1c (precise) from ubuntu | ||
+ | Pulling image b750fe79269d2ec9a3c593ef05b4332b1d1a02a62b4accb2c21d589ff2f5f2dc (12.10) from ubuntu | ||
+ | Pulling image 27cf784147099545 () from tutorial | ||
+ | </ | ||
+ | |||
+ | ==== Docker run ==== | ||
+ | |||
+ | < | ||
+ | you@tutorial: | ||
+ | hello world | ||
+ | </ | ||
+ | |||
+ | Docker run (install ping) | ||
+ | |||
+ | < | ||
+ | you@tutorial: | ||
+ | Reading package lists... | ||
+ | Building dependency tree... | ||
+ | The following NEW packages will be installed: | ||
+ | iputils-ping | ||
+ | 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. | ||
+ | Need to get 56.1 kB of archives. | ||
+ | After this operation, 143 kB of additional disk space will be used. | ||
+ | Get:1 http:// | ||
+ | debconf: delaying package configuration, | ||
+ | Fetched 56.1 kB in 1s (50.3 kB/s) | ||
+ | Selecting previously unselected package iputils-ping. | ||
+ | (Reading database ... 7545 files and directories currently installed.) | ||
+ | Unpacking iputils-ping (from .../ | ||
+ | Setting up iputils-ping (3: | ||
+ | </ | ||
+ | |||
+ | ==== Docker list ==== | ||
+ | |||
+ | List ID container with command install ping | ||
+ | |||
+ | < | ||
+ | you@tutorial: | ||
+ | ID IMAGE | ||
+ | 6982a9948422 | ||
+ | </ | ||
+ | |||
+ | ==== Docker commit ==== | ||
+ | |||
+ | Commit changes on this container | ||
+ | |||
+ | < | ||
+ | you@tutorial: | ||
+ | effb66b31edb | ||
+ | </ | ||
+ | |||
+ | ==== Docker ping ==== | ||
+ | |||
+ | Ping on google | ||
+ | |||
+ | < | ||
+ | you@tutorial: | ||
+ | PING www.google.com (74.125.239.129) 56(84) bytes of data. | ||
+ | 64 bytes from nuq05s02-in-f20.1e100.net (74.125.239.148): | ||
+ | 64 bytes from nuq05s02-in-f20.1e100.net (74.125.239.148): | ||
+ | 64 bytes from nuq05s02-in-f20.1e100.net (74.125.239.148): | ||
+ | </ | ||
+ | |||
+ | ==== Docker inspect ==== | ||
+ | |||
+ | < | ||
+ | you@tutorial: | ||
+ | ID IMAGE | ||
+ | efefdc74a1d5 | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | you@tutorial: | ||
+ | [2013/07/30 01:52:26 GET / | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | ], | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | ], | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | }, | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | }, | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | } | ||
+ | }, | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | </ | ||
+ | |||
+ | ==== Docker push ==== | ||
+ | |||
+ | Push your image to the Docker Hub Registry | ||
+ | |||
+ | < | ||
+ | you@tutorial: | ||
+ | ubuntu | ||
+ | learn/ | ||
+ | learn/ | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | you@tutorial: | ||
+ | The push refers to a repository [learn/ | ||
+ | Processing checksums | ||
+ | Sending image list | ||
+ | Pushing repository learn/ping (1 tags) | ||
+ | Pushing 8dbd9e392a964056420e5d58ca5cc376ef18e2de93b5cc90e868a1bbc8318c1c | ||
+ | Image 8dbd9e392a964056420e5d58ca5cc376ef18e2de93b5cc90e868a1bbc8318c1c already pushed, skipping | ||
+ | Pushing tags for rev [8dbd9e392a964056420e5d58ca5cc376ef18e2de93b5cc90e868a1bbc8318c1c] on {https:// | ||
+ | Pushing a1dbb48ce764c6651f5af98b46ed052a5f751233d731b645a6c57f91a4cb7158 | ||
+ | Pushing | ||
+ | Pushing tags for rev [a1dbb48ce764c6651f5af98b46ed052a5f751233d731b645a6c57f91a4cb7158] on {https:// | ||
+ | </ | ||
+ | |||
+ | ===== Docker on Windows ===== | ||
+ | |||
+ | ==== Docker upgrade ==== | ||
+ | |||
+ | < | ||
+ | boot2docker delete | ||
+ | boot2docker download | ||
+ | boot2docker init | ||
+ | boot2docker start | ||
+ | </ |
docker.txt · Poslední úprava: 2023/12/26 19:13 autor: 127.0.0.1