正确的方法来关闭pycharm容器

问题描述 投票:1回答:1

我不是码头工人和容器的新手。但是,我目前正在使用不属于我的图像和容器。立刻杀死他们会对我的工作产生任何副作用吗?

$ 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. 杀死它们是否安全?
python docker pycharm
1个回答
1
投票

好像你需要清理工作。您可以运行docker system prune,这将从您的系统中删除任何未使用的容器/图像/卷等。

© www.soinside.com 2019 - 2024. All rights reserved.