1
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Docker イメージ削除

Posted at

コンテナ一覧

$ docker ps -a
CONTAINER ID        IMAGE                  COMMAND                  CREATED             STATUS                       PORTS               NAMES
51bd4812607d        fc3d6eb83e94           "/bin/sh -c 'apt-get "   6 minutes ago       Up 6 minutes                                     adoring_goldberg
94affe498e2d        polleverywhere/rbenv   "/bin/bash"              9 minutes ago       Exited (127) 9 minutes ago                       berserk_galileo
1c1a1cda521f        polleverywhere/rbenv   "/bin/bash"              9 minutes ago       Exited (0) 9 minutes ago                         insane_stallman
9ded76785ea0        polleverywhere/rbenv   "/bin/bash"              9 minutes ago       Exited (0) 9 minutes ago                         pedantic_ride
1b6edaf9695d        hello-world            "/hello"                 23 minutes ago      Exited (0) 23 minutes ago                        furious_elion

コンテナ削除

$ docker rm 1b6edaf9695d
1b6edaf9695d
$ docker ps -a
CONTAINER ID        IMAGE                  COMMAND                  CREATED             STATUS                       PORTS               NAMES
51bd4812607d        fc3d6eb83e94           "/bin/sh -c 'apt-get "   7 minutes ago       Up 7 minutes                                     adoring_goldberg
94affe498e2d        polleverywhere/rbenv   "/bin/bash"              9 minutes ago       Exited (127) 9 minutes ago                       berserk_galileo
1c1a1cda521f        polleverywhere/rbenv   "/bin/bash"              9 minutes ago       Exited (0) 9 minutes ago                         insane_stallman
9ded76785ea0        polleverywhere/rbenv   "/bin/bash"              9 minutes ago       Exited (0) 9 minutes ago                         pedantic_ride

地道に消していく

イメージ削除

$ docker rmi polleverywhere/rbenv
Untagged: polleverywhere/rbenv:latest
$ docker images
REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
<none>              <none>              fc3d6eb83e94        7 minutes ago       95.94 MB
hello-world         latest              690ed74de00f        6 months ago        960 B

ようやく削除できた

参考

1
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?