Docker Community Forums

Share and learn in the Docker community.

Neither pull nor rm


(Mahmood) #1

Hi,
I pulled a container but I think there was a problem while downloading that. Now, I can neither pull it again, nor I can remove it.

[vagrant@a1 ~]$ docker pull mesosphere/dcos-101
Using default tag: latest
latest: Pulling from mesosphere/dcos-101
Digest: sha256:86c323bf05378d2e44bdf6a15df678b8a027f4bff07470c3a733c56c9bee176e
Status: Image is up to date for mesosphere/dcos-101:latest
[vagrant@a1 ~]$ docker container ls
CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS              PORTS                     NAMES
d61379d30956        redis:3.2.9         "docker-entrypoint..."   3 hours ago         Up 3 hours          0.0.0.0:15123->6379/tcp   mesos-af45fee9-ab43-4c6a-8d0f-1a1f76a73a90
[vagrant@a1 ~]$ docker rm mesosphere/dcos-101
Error response from daemon: No such container: mesosphere/dcos-101

What should I do at this step?


(David Maze) #2

docker run a container based on the image. Nothing is wrong as far as Docker can tell.

(docker rmi would remove the image, if you really wanted to; docker rm without the “i” removes a container, which is different. Also you don’t need to explicitly docker pull, docker run or docker build will pull images on their own if they need to.)