Docker Desktop: Unable to Use More Than 8GB in Docker Images

I am currently experiencing a limitation in the size of Docker images in my environment. I am restricted to a maximum of 8.3 GB of space for Docker images.

I am attempting to build a Docker image to test LLM (Language Model) using Python and Llama3. However, the nature of my project requires additional resources, resulting in a Docker image that exceeds 8 GB in size. Unfortunately, Docker is preventing me from creating this image due to its size limitation.

1 Like

[quote=“noyarzo Florida Blue, post:1, topic:141217”]
I am currently experiencing a limitation in the size of Docker images in my environment. I am restricted to a maximum of 8.3 GB of space for Docker images.

I am attempting to build a Docker image to test LLM (Language Model) using Python and Llama3. However, the nature of my project requires additional resources, resulting in a Docker image that exceeds 8 GB in size. Unfortunately, Docker is preventing me from creating this image due to its size limitation.
[/quote]

Hello, @noyarzo

To address the limitation in Docker image size, you might consider optimizing the Dockerfile to reduce the overall size of the image. Here are some strategies you can employ:

Use a Smaller Base Image: Opt for distroless or minimal base images to start with a smaller footprint.
Multi-Stage Builds: Leverage multi-stage builds to include only the necessary components in the final image.
Minimize Layers: Combine RUN instructions and remove unnecessary files to reduce the number of layers.
Utilize .dockerignore: Exclude unnecessary files and directories with a .dockerignore file to prevent them from being added to the image.

Additionally, tools like Docker Slim and Docker Squash can help further reduce the image size by optimizing layers and removing unnecessary data. Implementing these methods should help you stay within the 8.3 GB limit for your Docker images.

I hope my suggestion is helpful for you. If you want more details please tell me I am happy to help you.

Best Regard,
diana658

Docker Desktop runs containers in a VM. Check the Internet how to increase the parameters of the VM.