This commit is contained in:
Marc Beninca 2018-10-29 20:04:16 +01:00
parent 915e6522fc
commit 18c88c992d
3 changed files with 82 additions and 0 deletions

View file

@ -0,0 +1,75 @@
Host
====
Stats
-----
.. code:: shell
docker info
Images
------
List
^^^^
.. code:: shell
docker images
Import
^^^^^^
.. code:: shell
docker import archive_name.tar repository_name:image_name
Remove
^^^^^^
.. code:: shell
docker image rm image_name
Containers
----------
List
^^^^
.. code:: shell
docker ps --all
Create
^^^^^^
.. code:: shell
docker create \
--name container_name \
--publish host_port:container_port \
repository_name:image_name \
command argument_1 …
Start
^^^^^
.. code:: shell
docker start container_name
Stop
^^^^
.. code:: shell
docker stop container_name
Remove
^^^^^^
.. code:: shell
docker rm container_name

View file

@ -0,0 +1,6 @@
Docker
======
.. toctree::
host

View file

@ -5,3 +5,4 @@ Containers
:maxdepth: 2
lxc/index
docker/index