Managing the installer container
Use Podman commands to reattach, check, stop, remove, and recreate the installer container, which holds no state of its own.
Container commands
The container holds no state of its own, so it can be stopped, removed and recreated at any time. All states live in the data directory. Use the following commands:
# Reattach to a container that exited, which is the usual case
sudo podman start -ai ccc-lcm
# Check the container status
sudo podman ps -a --filter name=ccc-lcm
# Stop a running container
sudo podman stop ccc-lcm
# Remove the container, leaving the deployment state intact
sudo podman rm -f ccc-lcm
Recreating the container
After you pull a newer image, recreate the container. The terminal user interface needs an allocated terminal, so keep the interactive options:
sudo podman rm -f ccc-lcm
sudo podman create -it --log-driver=none --name ccc-lcm --network host \
-v /srv/ccc-lcm:/opt/ccc-lcm \
-v /root/.ssh:/root/.ssh:ro \
registry-host/ccc/cloudera/ccc-lcm:tag
sudo TERM=xterm-256color podman start -ai ccc-lcm
