关闭pycharm容器的正确方法

时间:2019-03-31 04:36:56

标签: python docker pycharm

我不是使用docker和container的新手。但是,我目前正在使用非我的图像和容器。立即杀死它们都会对我的工作有任何副作用吗?

$ docker images
REPOSITORY                           TAG                 IMAGE ID            CREATED             SIZE
<none>                               <none>              53c85f12be2c        19 hours ago        90.9MB
python                               3.7-alpine          a93594ce93e7        3 days ago          90.9MB
pycharm_helpers                      PY-183.5153.39      7ec86b616b84        2 months ago        37.8MB
pycharm_helpers                      PY-183.4886.43      2e7d72b769f4        3 months ago        37.8MB
python                               3.6-alpine          1837080c5e87        3 months ago        74.4MB
practice-pytorch_webapp              latest              154c086a6ec9        3 months ago        9.07GB
rasa-workshop-pydata-berlin_webapp   latest              154c086a6ec9        3 months ago        9.07GB
jd_webapp                            latest              154c086a6ec9        3 months ago        9.07GB
pycharm_helpers                      PY-183.4284.139     0424a06b7543        3 months ago        37.7MB
jupyter/datascience-notebook         latest              8f8d027f666d        4 months ago        6.31GB
busybox                              latest              59788edf1f3e        5 months ago        1.15MB

$ docker ps -a
CONTAINER ID        IMAGE                     COMMAND                  CREATED             STATUS                   PORTS               NAMES
2dd089cdc1e5        practice-pytorch_webapp   "tini -g -- jupyter …"   8 weeks ago         Exited (0) 8 weeks ago                       practice-pytorch_webapp_1_1c5021c402c1
09ebd4904164        7ec86b616b84              "/bin/sh"                2 months ago        Created                                      pycharm_helpers_PY-183.5153.39
8accff084b9b        2e7d72b769f4              "/bin/sh"                3 months ago        Created                                      pycharm_helpers_PY-183.4886.43
bf2f8f155d70        0424a06b7543              "/bin/sh"                3 months ago        Created                                      pycharm_helpers_PY-183.4284.139
  1. 这些图像是什么?
  2. 杀死并删除它们安全吗?

1 个答案:

答案 0 :(得分:1)

似乎您需要清理工作。您可以运行docker system prune,它将清除系统中所有未使用的容器/图像/卷等。