> [!META]- Inline Metadata
> [status:: develop]
> [source:: ]
> [tags:: #note/evergreen #state/boat #concepts/containerization/docker #concepts/containerization/docker ]
> [up:: ]
up:: [[Software Engineering MOC]]
# Addressing Docker No Space Left on Device Errors
When you build Docker assets with CDK, they are still built locally and aren't removed when the process is complete. You may eventually hit this error: `#8 29.62 ERROR: Could not install packages due to an OSError: [Errno 28] No space left on device`. This is because the images and containers are sitting in the Docker disk image that is of a fixed size. To fix this, you can prune all stopped containers, images, and volumes with `docker system prune --all`, volumes only `docker system prune --volumes`. To prune all images: `docker prune images -af`
## Sources
- [Docker documentation](https://docs.docker.com/config/pruning/)
- [AWS documentation](https://docs.aws.amazon.com/cdk/latest/guide/assets.html)