我正在尝试在docker中运行streamlit。我指的是位于https://github.com/domoritz/streamlit-docker的github存储库中的代码
执行docker-compose up
命令时出现以下错误:
ERROR: Could not install packages due to an EnvironmentError: [Errno 28] No space left on device
ERROR: Service 'streamlit' failed to build: The command '/bin/sh -c pip install -r requirements.txt' returned a non-zero code: 1
有人可以帮我解决这个问题吗?
最佳答案
硬盘驱动器上专用于Docker镜像,容器和其他数据的部分已满。您有两种选择:
在Mac上,打开Docker首选项,然后转到“资源”选项卡。您需要增加“磁盘镜像大小”选项来创建更多空间。
The docker docs explain some steps for deleting "unnecessary containers and images" here。该指南是详尽且写得很好的。简短的版本是,您通常可以通过删除“所有停止的容器,未使用的网络,悬挂的图像和构建缓存”来运行
docker system prune
释放大量空间。
关于docker - 错误:由于环境错误而无法安装软件包:[Errno 28]设备上没有剩余空间-尝试在docker中运行streamlit时,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62782578/