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.
12e45c7cfxxx
b8c06663xxx
Use this command view all docker containers currently running on the host:
sudo docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
12e45c7cfxxx appneta.azurecr.io/talos-engine:current "/app/run-engine-wra…" 4 minutes ago Up 4 minutes (healthy) cmp-aws-1_talos-001_1
b8c06663xxx 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
12e45c7cfxxx appneta.azurecr.io/talos-engine:current "/app/run-engine-wra…" 4 minutes ago Up 4 minutes (healthy) cmp-aws-1_talos-001_1
b8c06663xxx 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:
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'.
ubuntu@ip-10-0-0-14:~$ sudo docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
12e45c7cfxxx appneta.azurecr.io/talos-engine:current "/app/run-engine-wra…" 20 hours ago Up 15 minutes (healthy)
b8c06663xxx 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,
ubuntu@ip-10-0-0-14:~$ sudo docker stop 12e45c7cfxxx b8c06663xxx
12e45c7cfxxx
b8c06663xxx
ubuntu@ip-10-0-0-14:~$ sudo docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
12e45c7cfxxx appneta.azurecr.io/talos-engine:current "/app/run-engine-wra…" 20 hours ago Exited (0) 7 seconds ago
b8c06663xxx appneta.azurecr.io/pathview-cmp:current "/sbin/entrypoint.sh" 20 hours ago Exited (0) 7 seconds ago
ubuntu@ip-10-0-0-14:~$ sudo docker start 12e45c7cfxxx b8c06663xxx
12e45c7cfxxx
b8c06663xxx
You can use the following command to delete a Docker Container:
ubuntu@ip-10-0-0-14:~/cmp-aws-1$ sudo docker container ls -aq
12e45c7cfxxx
b8c06663xxx
7f6ba3f13xxx
ubuntu@ip-10-0-0-14:~/cmp-aws-1$ sudo docker container rm 12e45c7cfxxx
12e45c7cfxxx
ubuntu@ip-10-0-0-14:~/cmp-aws-1$ sudo docker container ls -aq
b8c06663xxx
7f6ba3f13xxx
You can use the following command to console into a Docker Container:
sudo docker exec -it <container id> /bin/bash
For example:
ubuntu@ip-10-0-0-14:~/cmp-aws-1$sudo docker exec 12e45c7cfxxx /bin/bash