Skip to content
This repository has been archived by the owner on Jul 10, 2023. It is now read-only.

Commit

Permalink
Modify the part related to docker in README for issue-98
Browse files Browse the repository at this point in the history
  • Loading branch information
shunyi authored and shunyi committed Sep 17, 2017
1 parent 4595101 commit 3097fe8
Showing 1 changed file with 20 additions and 3 deletions.
23 changes: 20 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,31 @@ from `Docker Hub <https://hub.docker.com/r/zdict/zdict/>`_ :

.. code-block:: sh
# Pull image from Docker Hub
# Pull the image of latest commit of master branch from Docker Hub
docker pull zdict/zdict
# Pull the image of latest release from Docker Hub
docker pull zdict/zdict:release
# Pull the image of specific release version from Docker Hub
docker pull zdict/zdict:${version}
docker pull zdict/zdict:v0.10.0
How to run the zdict docker image

.. code-block:: sh
# Run interactive mode
docker run -it --rm zdict/zdict
docker run -it --rm zdict/zdict:$tag
docker run -it --rm zdict/zdict:release
# Run normal mode
docker run -it --rm zdict/zdict apple bird
docker run -it --rm zdict/zdict:$tag apple bird
docker run -it --rm zdict/zdict:release apple bird
# You can also add the options while using docker run
docker run -it --rm zdict/zdict:v0.10.0 -dt moe 哈
Usage
------------------------------
Expand Down

0 comments on commit 3097fe8

Please sign in to comment.