Sign inSign up

mofan8/blog

By mofan8

•Updated over 7 years ago

blog

Image
0

210

mofan8/blog repository overview

⁠blog

⁠build

docker build -t mofan8/blog .

⁠pull

docker pull mofan8/blog

⁠run(创建并运行一个容器,退出时删除容器)

docker run  --name blog \
            -h blog \
            -p 4000:4000 \
            -it --rm mofan8/blog

⁠run(创建并运行一个容器,以守护进程方式)

docker run  --name blog \
            --restart=always \
            -h blog \
            -p 4000:4000 \
            -dt mofan8/blog

⁠start|stop|restart(已存在的容器)

docker start|stop|restart blog

⁠exec(使用已运行的容器执行命令)

docker exec -it blog /bin/bash

Tag summary

Content type

Image

Digest

Size

408.3 MB

Last updated

over 7 years ago

docker pull mofan8/blog