简体   繁体   中英

“docker run -d-p ” return a sha256 code,but “docker ps”: nothing,and docker logs :noting

I run in my terminal:

docker run -d -p 8082:80 --name runoob-nginx-test-web -v ~/nginx/www:/usr/share/nginx/html -v ~/nginx/conf/nginx.conf:/etc/nginx/nginx.conf -v ~/nginx/logs:/var/log/nginx matt18/nginx:v1  

and get a sha256 code:

072841edf0324c13939e0e95b2119f386414facd124a32de031161f21f498265

but

docker ps :  get nothing
docker ps -a  : contrainer ID: 072841edf032, STATUS: Exited (0) About a minute ago
docker logs  072841edf032 : get nothing

what is the problem?

请问这个目录~/nginx/conf/nginx.conf是否为空,这意味着nginx服务无法找到其配置文件并退出。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM