アプリをデプロイした後、バグを修正したい場合、または単にアップデートをリリースしたい場合はどうなりますか?
コンテナを実行すると、次を使用してそのIDを取得できます。docker ps
、次に使用しますdocker commit
それから画像の新しいタグを作成するには:
docker commit <id> <username>/<imagename>:<tagname>You can also add a changelog message that lists what changed in the new version:
docker commit --change "description" <id> <username>/<imagename>:<tagname>
More docker tutorials:
- Introduction to Docker
- Introduction to Docker Images
- Introduction to Docker Containers
- Dockerfiles
- Installing Docker on macOS
- First steps with Docker after the installation
- Using Docker Desktop to manage a Container
- Create a simple Node.js Hello World Docker Container from scratch
- What to do if a Docker container immediately exits
- Working with Docker Containers from the command line
- Working with Docker Images from the command line
- Sharing Docker Images on Docker Hub
- How to access files outside a Docker container
- How to commit changes to a Docker image
- Updating a deployed container based on a Docker image