# Container Management

#### Introduction

This section will outline the steps necessary to patch and maintain the CMS software delivered as containers.

---

#### Patch Docker Host

**Purpose**  
Deploy the latest updated to the Docker host itself.

**Permission Level**  
Docker Host Administrator

**Notes**

- You will likely need to enable the firewall ruleset that allows SSH access into the Docker host.
- If necessary, execute docker logs \[container name\].

**Steps**

1. Connect via SSH to the host.
2. Execute **sudo apt update**
3. Execute **apt list --upgradable**
4. Execute **sudo apt upgrade -y**
5. Execute **cd /mnt/cms**
6. Execute **docker ps -a**

---

#### Update Containers

**Purpose**  
Update all containers in the CMS service to the latest version.

**Permission Level**  
Docker Host Administrator

**Notes**

- You will likely need to enable the firewall ruleset that allows SSH access into the Docker host.

**Steps**

1. Connect via SSH to the host.
2. Execute **cd /mnt/cms**
3. Execute **docker compose down**
4. Execute **docker compose pull**
5. Execute **docker compose up -d**
6. Execute **docker ps -a**
7. Execute **docker system prune -a**