#去掉参数,避免列出文件

#更新nginx配置,未挂载到本机

root@svn:/data/devpi3# docker exec cp nginx-pipsvr.conf pipsvr:/etc/nginx/sites-enabled/default

Error response from daemon: No such container: cp

root@svn:/data/devpi3# docker cp nginx-pipsvr.conf pipsvr:/etc/nginx/sites-enabled/default

Successfully copied 2.05kB to pipsvr:/etc/nginx/sites-available/default

root@svn:/data/devpi3# docker exec pipsvr nginx -t

nginx: the configuration file /etc/nginx/nginx.conf syntax is ok

nginx: configuration file /etc/nginx/nginx.conf test is successful

root@svn:/data/devpi3# docker exec pipsvr nginx -s reload

root@svn:/data/devpi3#

Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐