Quantcast
Channel: Active questions tagged containers - DevOps Stack Exchange
Viewing all articles
Browse latest Browse all 164

After removing Docker container, why is it automatically re-created?

$
0
0

I'm using ubuntu-16.04 desktop and installed Docker-1.5-1 and docker-engine-17.05.0~ce-0~ubuntu-xenial, in which I installed openmedicus/phplist. My aim is to remove the container, and the image as well.

The issue is that the container is removed successfully but after some time the container is automatically created with a different container ID.

I even tried to remove images also but faced the same issue.

Trying to remove images:

$ docker images | grep phplistopenmedicus/phplist             latest              24d3de5279cb        4 months ago        694MB$ docker rmi openmedicus/phplist:latest --forceUntagged: openmedicus/phplist:latestUntagged: penmedicus/phplist@sha256:6ac98b2f624eb8cd61b64c4b398650975a876224d5925175c58ff0c1b05a2593$ docker images | grep phplist    ## Delete Sucessfully

Now trying to remove container :

$ docker psb02b641560e8        24d3de5279cb             "/bin/sh -c /usr/s..."   2 minutes ago       Up 2 minutes        0.0.0.0:8080->80/tcp                                 $ docker stop b02b641560e8b02b641560e8$ docker rm b02b641560e8 --force   # Remove Sucessfullyb02b641560e8

Again, the container is created automatically :

$ docker ps2c78199dc40c        openmedicus/phplist      "/bin/sh -c /usr/s..."   29 seconds ago      Up 28 seconds       0.0.0.0:8080->80/tcp                                 phplist

How can I remove the Docker container and image permanently?


Viewing all articles
Browse latest Browse all 164

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>