简体   繁体   中英

cannot restart correctly ubuntu after use docker python “no space left on device” , no memory available on peripheric

Today i tried to create a docker of the final version of my project(my project has a size of 3.2 Go) with the command "docker build --tag my-python-app". I had several problems during the manipulation : i ran the command docker. it several times because in the file "Dockerfile", i specified the wrong python and wrong pip. Anyway, now i have "no space left on device" and my screen is blinking.

For the moment, I tried an autoremove, but still not enough space.

Someone has an idea of what is happening?

Have you tried to remove unused Docker images or containers?

You can see the list of images by running:

docker images

And you can remove them like:

docker rmi <id>

The process is fairly similar for the containers:

docker ps -a

And:

docker rm <id>

Be careful not to remove used containers or images.

Run docker image ls to see if you have any images that you can delete to free up space.

If you find images that you do not need, you can remove them individually or all at once. Run docker image prune -h to display the options for removing images.

I found the problem: When you build your docker, and this print an error, it doesn't delete intermediate containers created in the folder /var/lib/docker/aufs/diff (my error was in the dockerfile, where i precised the wrong python and the wrong pip), and this folder is saved in the peripherical part of the memory. So if you take all the memory, your computer is full of bug (screen, keyword, ...) and you can only use your terminal. To resolver the problem you have to delete these folders

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM