我目前正在学习一个项目的Docker,并在我的PHP网站上启动了一个配置,我打算改变这个配置。问题是,即使我在Dockerfile中设置了不同的版本,也会得到相同的PHP版本。这是当我执行停靠-组合命令时的输出。
# tell docker what version of the docker-compose.yml were using
version
在docker-compose.yml中定义了服务的范围。这些服务已启动。我只需要重建其中的一个并启动它,而不需要启动其他服务。我运行以下命令:docker-compose stop nginx # stop only one. but it stilldocker-compose build --no-cache nginx
docker-c