docker-compose up -d # run all services
docker-compose stop nginx # stop only one. but it is still running !!!
docker-compose build --no-cache nginx
docker-compose up -d --no-deps # link nginx to other services
最后,我得到了旧的nginx容器。
Docker-compose不会杀死所有正在运行的容器!< / p >