Docker Community Forums

Share and learn in the Docker community.

Error saving container to disk: read-only file system

docker
beta

(Benoît LELEVÉ) #1

Expected behavior

Docker Compose should start existing containers.

Actual behavior

Start failed due to read-only file system.

PS D:\Project\.docker> docker-compose start
Starting mariadb …
Starting maildev …
Starting php …
Starting nginx …
e[1Bting nginx … erroror
ERROR: for mariadb Error saving container to disk: open /var/lib/docker/containers/b571a8d265888f3ac84cc9642e67393a9b4
8e13a401dd337f564afab36c4365/config.v2.json: read-only file system

ERROR: for maildev Error saving container to disk: open /var/lib/docker/containers/944672c6c7eefb2364876c9f880e49088cd
478c38f57532871960826da50610/config.v2.json: read-only file system
e[31mERRORe[0m: No containers to start
PS D:\Project\.docker> docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
22128bb19569 library/nginx “nginx -g 'daemon off” 3 days ago Exited (0) 3 days ago project_nginx_1
bef8868ccd97 project_php “php-fpm” 3 days ago Exited (0) 3 days ago project_php_1
b571a8d26588 library/mariadb “/docker-entrypoint.s” 3 days ago Exited (0) 3 days ago project_mariadb_1
944672c6c7ee djfarrelly/maildev “bin/maildev --web 80” 3 days ago Exited (137) 3 days ago project_maildev_1

Information

Last Docker Beta on Windows 10 Pro.

It was working fine 3 days ago (when I have installed Docker for Windows), the error occurred after a reboot.

Best regards,
Benoît LELEVÉ.


(Benoît LELEVÉ) #2

I have to remove the Hyper-V MobyLinux VM and recreate it after each reboot.


(Benoît LELEVÉ) #3

I found another solution to the problem:

  1. Stop Docker
  2. Stop and restart the Hyper-V service
  3. Restart Docker

PS D:\Project\.docker> docker-compose start
Starting mariadb …
Starting maildev …
Starting php …
Starting nginx …
e[3Bting maildev … error
ERROR: for mariadb Error saving container to disk: open /var/lib/docker/containers/3d52ead6b363ce7cd7cbba7dd13ee509b2c3
9228becb0514c5acd81b1248ef66/config.v2.json: read-only file system

ERROR: for maildev Error saving container to disk: open /var/lib/docker/containers/94da2b9af1525843c0b2ae0511ea795450b0
7b1c317b14b9513b817eac9437ea/config.v2.json: read-only file system
e[31mERRORe[0m: No containers to start
PS D:\Project\.docker> docker-compose start
Starting mariadb …
Starting maildev …
Starting php …
Starting nginx …