T
T
toha_man2020-09-05 01:31:41
Docker
toha_man, 2020-09-05 01:31:41

Why is there not enough space for docker?

I am forced for certain reasons, mostly temporary, to use docker under windows
Docker ToolBox to be exact. Containers are created, launched, downloaded from Docker Hub, everything is good
The problem is this. There is a project on a flask with tensorflow, and models for AI at ~ 10GB.

Dockerfile like this:

FROM python:3.8-slim

COPY . /root

WORKDIR /root

RUN pip install flask gunicorn flask_wtf boto3 tqdm
RUN pip install numpy==1.18.5
RUN pip install tensorflow==2.2.0 onnxruntime==1.4.0


The problem is that when running docker-compose up --build there is not enough space on the C:\ drive (13GB is free there).
If you remove the line of the AI ​​​​model (which are 9GB) - everything is OK, the project starts. It turns out that the models are copied for some reason through the C:\ drive.

Docker under Windows works through VirtualBox.
What I tried to do:
Redefined the shared folder for the docker virtual machine (logged in via ssh, did mount -t virtualbsf)
Moved the VirtualBox virtual machine itself to another disk (recreated it in docker)

Anyway, the C:\ drive is used and there is not enough space.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
shurshur, 2020-09-05
@shurshur

Docker downloads fslayer as an archive, which it then unpacks. No wonder he needs more space.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question