docker
This commit is contained in:
parent
915e6522fc
commit
18c88c992d
3 changed files with 82 additions and 0 deletions
75
in/public/containers/docker/host.rst
Normal file
75
in/public/containers/docker/host.rst
Normal 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
|
6
in/public/containers/docker/index.rst
Normal file
6
in/public/containers/docker/index.rst
Normal file
|
@ -0,0 +1,6 @@
|
|||
Docker
|
||||
======
|
||||
|
||||
.. toctree::
|
||||
|
||||
host
|
|
@ -5,3 +5,4 @@ Containers
|
|||
:maxdepth: 2
|
||||
|
||||
lxc/index
|
||||
docker/index
|
||||
|
|
Loading…
Reference in a new issue