- Script to update a single Docker container.
- Usage:
./update_container.sh 'list of container names'
- Example:
./update_container.sh grafana
- Example:
- Check that the container's directory exists.
- Lookup the image tag within the docker-compose.yml file.
- Pull the latest image.
- If the container is not using the latest image, it will be rebuilt with the latest image.
- Purge the old image from the filesystem.