Wednesday, August 16, 2023

Removing Docker container

 

Removing Docker container


To delete the container named "kke-container" running on Server , you can use the following steps:

1. Stop and Remove Container:

To delete the container named "kke-container," you need to stop and then remove the container. Use the following commands:

  # docker stop kke-container

  Remove the container: 

  # docker rm kke-container

   

The first command stops the container, and the second command removes it.


2. Verify Container Deletion:

      You can verify that the container has been removed by listing all containers on the server using:

#   docker ps -a

   If the "kke-container" is no longer listed, it has been successfully deleted.


That's it! The container named "kke-container" has been deleted from  Server . 

No comments:

Post a Comment

Removing Docker container

  Removing Docker container To delete the container named "kke-container" running on Server , you can use the following steps: 1. ...