python - 使用 docker python "no space left on device"后无法正确重新启动 ubuntu,外围设备上没有可用内存

标签 python docker ubuntu

今天,我尝试使用命令“docker build --tag my-python-app”创建项目最终版本的 docker(我的项目大小为 3.2 Go)。我在操作过程中遇到了几个问题:我运行了命令 docker。它好几次了,因为在文件“Dockerfile”中,我指定了错误的 python 和错误的 pip。不管怎样,现在我“设备上没有剩余空间”并且我的屏幕在闪烁。

目前,我尝试了自动删除,但仍然没有足够的空间。

有人知道发生了什么吗?

最佳答案

您是否尝试过删除未使用的 Docker 镜像或容器?

您可以通过运行以下命令查看图像列表:

docker images

您可以像这样删除它们:

docker rmi <id>

容器的过程非常相似:

docker ps -a

还有:

docker rm <id>

小心不要删除使用过的容器或图像。

关于python - 使用 docker python "no space left on device"后无法正确重新启动 ubuntu,外围设备上没有可用内存,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53783373/

相关文章:

python - 具有外部数据库的 Sqlite 更新 Hook

python - 使用pytz获取时区的国家代码?

docker - 关于Domjudge服务器的Docker-compose设置问题

linux - 我可以在 linux 系统上为 Mac 构建 Electron 应用程序吗?

python - 无法在 Linux (Ubuntu) 中启动 Jupyter Notebook

python - 使用 VBA 运行 .exe

python - Django - 验证模型和 ModelForm 中计算字段的唯一性

sql-server - 如何将在 Docker 容器中运行的 Flyway 连接到在 Docker 容器中运行的数据库?

linux - Windows 上的 Ubuntu 上的 Bash 上的 Hadoop 权限被拒绝

java - 非特权用户的 Maven 内存不足