Container Status Operations
1 min
You can use the following commands to manage the operational state of Docker containers. These commands allow you to start, stop, or restart Kron PAM services as needed during troubleshooting or maintenance activities.
- Log in to Kron PAM CLI interface
- Navigate to folder /pam/docker-mgmt
[pamuser@kronpam:~]# cd /pam/docker-mgmt
- To bring all containers to the up state, you can run the following command. Note, however, that this action may also start containers that are not licensed for your deployment, which can lead to unnecessary resource usage.
[pamuser@kronpam:~]# docker-compose up
- To start an individual service, run the following command. This allows you to bring up a specific Docker-based component without affecting the rest of the Kron PAM services.
[pamuser@kronpam:~]# docker-compose up <service name>
- To shut down all containers, the following command can be run:
[pamuser@kronpam:~]# docker-compose down
- To shut down individual container, the following command can be run:
[pamuser@kronpam:~]# docker-compose down <service name>
- To remove a stopped container, the following command can be run:
[pamuser@kronpam:~]# docker rm <container_name_or_id>