docker,lxc

This commit is contained in:
Marc Beninca 2019-08-25 10:19:10 +02:00
parent 55178d529d
commit a799f7f97c
8 changed files with 6 additions and 15 deletions

75
in/public/docker/host.rst Normal file
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