What does the Dockerfile do?
Set the argument “http_proxy” for the docker option “--build-arg” as follows
$ docker build -t NAME[:TAG] --build-arg proxy_host="<proxy_host>" proxy_port="<proxy_port>" .
For old version docker v1.10 below, Please replace ARG with ENV and set its value as proxy strings in Dockerfile instead
Build from git repository
$ docker build -t NAME[:TAG] https://github.com/apache/mnemonic.git#:docker/docker-CentOS $ docker build -t NAME[:TAG] https://github.com/apache/mnemonic.git#:docker/docker-Ubuntu
-- OR --
In the folder of Dockerfile, run:
$ docker build -t NAME[:TAG] .
$ docker login [OPTIONS] [SERVER] $ docker push [OPTIONS] NAME[:TAG]
Run image:
$ docker run --name CONTAINER_NAME -it NAME[:TAG]
$ docker run -v <hostdir>/mnemonic:/ws/mnemonic -it NAME[:TAG]
Note: this command will override the container's project folder, you can use another name to avoid it.