Docker Common Errors And Solution Fixes
👤 By ww | 📆
this is just a colletion of some erors i have encounted with docker and ubuntu linux in a windows virtual machine;
Error response from daemon: You cannot remove a restarting container
I tried many commands to stop and delete a dead running container, I tried many commands and only one worked
- docker rm $(docker ps -a -q)
- docker ps
- docker-compose down
- docker ps
- docker rm $(docker ps -a -q)
- umount /var/lib/docker/devicemapper/mnt/235e921652c2f3253f87c14f6d523789f9cc2d660c7c791f7aa9ad9516cbcb65
- docker rm $(docker ps --all -q -f status=dead)
- docker ps -a
- docker-compose down
- grep docker /proc/*/mountinfo
- sudo service nginx stop
- docker ps
- docker rm -f app
- docker ps
The winner is docker rm -f <APP_NAME>
docker configure: error: Please reinstall the libzip distribution
FIX: To solve this problem all I had to do is add libzip-dev to the apt-get dependencies in the Dockerfile, Example:
# Install dependencies
RUN apt-get update && apt-get install -y \
build-essential \
libpng-dev \
libjpeg62-turbo-dev \
libfreetype6-dev \
locales \
zip \
jpegoptim optipng pngquant gifsicle \
vim \
unzip \
git \
curl \
libzip-dev
Hope that helps