Build image:

$ docker build .

Get a clean Debian 10 shell with PWD mounted and 80 port exposed:

$ docker pull debian:10
$ docker run -it -v $PWD:/app -p debian:10 bash
-i, --interactive:

Keep STDIN open even if not attached

-t, --tty:

Allocate a pseudo-TTY


Start a container with a bind mount [1]

-p, --expose:

Bind port 8080 of the container to TCP port 80 of host on 127.0.0 [2]


$ docker update --restart=always name

如果你有任何意见,请在此评论。 如果你留下了电子邮箱,我可能会通过 回复你。