search
cancel
Search
Docker basic commands
book
Article ID: 184894
calendar_today
Updated On:
Products
Symantec ZTNA
Show More
Show Less
Issue/Introduction
Docker basic commands - Fetching logs and deleting containers
Resolution
To view all deployed containers :
Docker ps -a
To fetch logs from a running container:
Docker logs CONTAINER_ID > log_file.txt
To delete a container
Find the CONTAINER_ID by using the "docker ps -a" command
Run the following command with the appropriate container_id:
Sudo docker rm CONTAINER_ID
Feedback
thumb_up
Yes
thumb_down
No