Skip to content

basetis/docker-utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

🛠 Utility commands for the Docker engine

Resources

License

Stars

Watchers

Forks

Packages

No packages published