Once a AppNeta Container Monitoring Point (CMP) is successfully deployed, you may find the following command to be of use to view, stop and restart, upgrade or delete the CMP.
Use this command view all docker containers currently running on the host:
sudo docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
12e45c7cffcb appneta.azurecr.io/talos-engine:current "/app/run-engine-wra…" 4 minutes ago Up 4 minutes (healthy) cmp-aws-1_talos-001_1
b8c06663ad99 appneta.azurecr.io/pathview-cmp:current "/sbin/entrypoint.sh" 4 minutes ago Up 4 minutes (healthy) 0.0.0.0:443->443/tcp, 0.0.0.0:1720->1720/udp, 0.0.0.0:3236->3236/tcp, 3237/tcp, 0.0.0.0:3236-3239->3236-3239/udp, 0.0.0.0:5060->5060/udp, 0.0.0.0:3238->3238/tcp, 0.0.0.0:33434->33434/udp, 3239/tcp cmp-aws-1_sequencer_1
Use the following command to view the version of the CMP:
sudo docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
12e45c7cffcb appneta.azurecr.io/talos-engine:current "/app/run-engine-wra…" 4 minutes ago Up 4 minutes (healthy) cmp-aws-1_talos-001_1
b8c06663ad99 appneta.azurecr.io/pathview-cmp:current "/sbin/entrypoint.sh" 4 minutes ago Up 4 minutes (healthy) 0.0.0.0:443->443/tcp, 0.0.0.0:1720->1720/udp, 0.0.0.0:3236->3236/tcp, 3237/tcp, 0.0.0.0:3236-3239->3236-3239/udp, 0.0.0.0:5060->5060/udp, 0.0.0.0:3238->3238/tcp, 0.0.0.0:33434->33434/udp, 3239/tcp cmp-aws-1_sequencer_1
The following command are used to perform upgrades for docker containers:
[email protected]:~/support-lab-cmp-01$ sudo docker-compose -f mp-compose.yaml down
Stopping support-lab-cmp-01_sequencer_1 ... done
Stopping support-lab-cmp-01_talos-001_1 ... done
Removing support-lab-cmp-01_sequencer_1 ... done
Removing support-lab-cmp-01_talos-001_1 ... done
Removing network support-lab-cmp-01_default
[email protected]:~/support-lab-cmp-01$ sudo docker-compose -f mp-compose.yaml pull && sudo docker-compose -f mp-compose.yaml up -d
Pulling sequencer ... done
Pulling talos-001 ... done
Creating network "support-lab-cmp-01_default" with the default driver
Creating support-lab-cmp-01_talos-001_1 ... done
Creating support-lab-cmp-01_sequencer_1 ... done
[email protected]:~/support-lab-cmp-01$
If for whatever reason you wish to stop a Docker container, use the docker stop command and reference the container ID.
Remember to stop BOTH containers, 'Talos' and 'Sequencer'.
[email protected]:~$ sudo docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
12e45c7cffcb appneta.azurecr.io/talos-engine:current "/app/run-engine-wra…" 20 hours ago Up 15 minutes (healthy)
52a4a76cd6dd appneta.azurecr.io/pathview-cmp:current "/sbin/entrypoint.sh" 20 hours ago Up 15 minutes (healthy) 0.0.0.0:443->443/tcp, 0.0.0.0:1720->1720/udp,
[email protected]:~$ sudo docker stop 12e45c7cffcb 52a4a76cd6dd
12e45c7cffcb
52a4a76cd6dd
[email protected]:~$ sudo docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
12e45c7cffcb appneta.azurecr.io/talos-engine:current "/app/run-engine-wra…" 20 hours ago Exited (0) 7 seconds ago
52a4a76cd6dd appneta.azurecr.io/pathview-cmp:current "/sbin/entrypoint.sh" 20 hours ago Exited (0) 7 seconds ago
[email protected]:~$ sudo docker start 12e45c7cffcb 52a4a76cd6dd
12e45c7cffcb
52a4a76cd6dd
You can use the following command to delete a Docker Container:
[email protected]:~/cmp-aws-1$ sudo docker container ls -aq
12e45c7cffcb
b8c06663ad99
7f6ba3f13e4f
[email protected]:~/cmp-aws-1$ sudo docker container rm 12e45c7cffcb
12e45c7cffcb
[email protected]:~/cmp-aws-1$ sudo docker container ls -aq
b8c06663ad99
7f6ba3f13e4f