Updating the Content Runtime Docker Containers
Updating the pattern manager and software repository Docker containers after is has been deployed.
The Content Runtime consists of a virtual machine with two Docker containers - one for the pattern manager and one for the software repository. There are times where you may want to update these Docker containers manually rather than redeploying a new content runtime. The Content Runtime provides a helper script to assist in updating the Docker containers so that you don't need to manually run Docker commands.
Image upgrade script
The image upgrade script is called image-update.sh
and is found in the ~/advanced-content-runtime
directory on the Content Runtime. Usage syntax is:
~/advanced-content-runtime/image-upgrade.sh <container> <version>
The container and version variables can be retrieved from the image column of the output of the podman ps
command. For example, in the following output, the container is camc-pattern-manager
and the version is 1.0-current.
$ podman ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
a14ae0bd4ae6 ibmcom/camc-pattern-manager:1.0-current "bin/bash /opt/ibm/p…" 6 hours ago Up 6 hours 0.0.0.0:5443->443/tcp camc-pattern-manager
f0e7aa1c3c41 ibmcom/camc-sw-repo:1.0-current "/bin/bash /tmp/inst…" 6 hours ago Up 6 hours 0.0.0.0:8888->8888/tcp, 0.0.0.0:9999->9999/tcp camc-sw-repo
Using these values in the image-upgrade command results in the following request:
~/advanced-content-runtime/image-upgrade.sh camc-pattern-manager 1.0-current
This will pull the latest 1.0-current podman container and a new image will appear in the output of podman images
for the specified container.