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 c8177a3
Showing 1 changed file with 25 additions and 3 deletions.
28 changes: 25 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,36 @@ 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 # latest commit
docker run -it --rm zdict/zdict:release # latest release
docker run -it --rm zdict/zdict:v0.10.0 # use zdict v0.10.0
docker run -it --rm zdict/zdict:$tag # with specific tag
# Run normal mode
docker run -it --rm zdict/zdict apple bird
docker run -it --rm zdict/zdict apple bird # latest commit
docker run -it --rm zdict/zdict:release apple bird # latest release
docker run -it --rm zdict/zdict:v0.10.0 apple bird # use zdict v0.10.0
docker run -it --rm zdict/zdict:$tag apple bird # with specific tag
# You can also add the options while using docker run either interactive mode or normal mode
docker run -it --rm zdict/zdict:v0.10.0 -dt moe # use moe dict in interactive mode
docker run -it --rm zdict/zdict:v0.10.0 -dt moe 哈 # use moe dict in normal mode
Usage
------------------------------
Expand Down

0 comments on commit c8177a3

Please sign in to comment.