[root@node1-master nginx]# sh restart.sh
Error response from daemon: No such container: harbornginx
Error: No such container: harbornginx
user nginx;
worker_processes 1;
error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
}
stream {
upstream hub {
server 192.168.33.174:80;
}
server {
listen 80;
proxy_pass hub;
proxy_timeout 300s;
proxy_connect_timeout 5s;
}
}
#!/bin/bash
docker stop harbornginx
docker rm harbornginx
docker run -idt --net=host --name harbornginx -v /root/nginx/nginx.conf:/etc/nginx/nginx.conf nginx:1.13.12
感觉这一章讲的harbor和前面的接不起来。。。这个脚本执行怎么会报container的错呢?这不是执行的docker命令吗