Skip to content

Latest commit

 

History

History
23 lines (14 loc) · 595 Bytes

README.md

File metadata and controls

23 lines (14 loc) · 595 Bytes

docker-utils

Some utilities for the Docker engine, used internally at Basetis.

To use, first install Node.js, then:

npm i -g @basetis/docker-utils

docker-upgrade

docker-upgrade <container> <image_tag>

Re-launch a container with a new image, preserving its config.

To minimize downtime, the image is pulled first if necessary. Then the container is stopped, removed, and a new one is started.

For convenience, you can just supply :TAG and the repo part will be detected from the running container. Or, if no image is passed, the same tag will be pulled and used.