@basetis/docker-utils

1.1.4 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @basetis/docker-utils

Weekly Downloads

3

Version

1.1.4

License

ISC

Unpacked Size

4.84 kB

Total Files

4

Last publish

Collaborators

  • kilian.ubeda