All volumes, containers and images gone after update to 1.13.0
Description I've just updated to 1.13.0 by clicking on the Install now button (or whatever it is called exactly) in the New Docker version available pop-up window. When Docker was back to Docker is running, all volumes were gone along with the containers and images.
Steps to reproduce the issue:
- Update Docker for Mac to 1.13.0
Describe the results you received:
- Docker updated to 1.13.0
- Images, volumes, containers gone
Describe the results you expected:
- Images, volumes, containers still exist
Output of docker version:
Client:
Version: 1.13.0
API version: 1.25
Go version: go1.7.3
Git commit: 49bf474
Built: Wed Jan 18 16:20:26 2017
OS/Arch: darwin/amd64
Server:
Version: 1.13.0
API version: 1.25 (minimum version 1.12)
Go version: go1.7.3
Git commit: 49bf474
Built: Wed Jan 18 16:20:26 2017
OS/Arch: linux/amd64
Experimental: true
Output of docker info:
Containers: 0
Running: 0
Paused: 0
Stopped: 0
Images: 0
Server Version: 1.13.0
Storage Driver: overlay2
Backing Filesystem: extfs
Supports d_type: true
Native Overlay Diff: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: bridge host ipvlan macvlan null overlay
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 03e5862ec0d8d3b3f750e19fca3ee367e13c090e
runc version: 2f7393a47307a16f8cee44a37b262e8b81021e3e
init version: 949e6fa
Security Options:
seccomp
Profile: default
Kernel Version: 4.9.4-moby
Operating System: Alpine Linux v3.5
OSType: linux
Architecture: x86_64
CPUs: 2
Total Memory: 1.952 GiB
Name: moby
ID: QQRQ:262B:QJ33:COUT:KJHA:G3ZI:U7YR:5GHL:DRKA:OFNC:CZM2:Y2LG
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): true
File Descriptors: 16
Goroutines: 26
System Time: 2017-01-20T14:11:30.259001582Z
EventsListeners: 1
No Proxy: *.local, 169.254/16
Username: esbeee
Registry: https://index.docker.io/v1/
Experimental: true
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false
After I'm using Docker for Mac, all volumes, containers and images had been gone for several times. This happen more than twice when a newer version has been installed. So sad.
Without a diagnostic ID we cannot look and see what happened and try to fix it in future.
@esBeee, could you please provide a diagnostic id (from the "Diagnose & Feedback..." -> "Diagnose & Upload" menu option) so that we can investigate further?
Of course, @yallop . I have 91EA78C9-7049-4B7D-8982-7D17FCDB782F.
Your logs contain:
* Configuring host block device .../dev/sda2 contains a file system with errors, check forced.
/dev/sda2: Inodes that were part of a corrupted orphan linked list found.
/dev/sda2: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.
(i.e., without -a or -p options)
Filesystem unrecoverably corrupted, will reformat
Which seems to indicate a disk corruption which is probably due to the way we shutdown the VM during upgrade. Which version of Docker for Mac were you running before upgrading? We apologies for the inconvenience, and thanks again for reporting the issue. I have escalated the problem of shutting down the app gracefully on upgrade to our engineering team.
I just got burned by this too. :-(
@samoht - if this is a known and acknowledged bug why is the Docker engine still encouraging people to upgrade to 1.13? I just logged in after 3 weeks without internet access, got told there is a new version of Docker and I've just lost everything.
Diagnostic ID: 87389479-4F8F-4632-8BE8-591E5125A816 Previous version: 1.12.5 OSX version = 10.12.1, default value of on-sleep = no not freeze
@v4tech I'm very sorry for the data loss you have experienced. Could you upload your diagnostic bundle (choose Diagnose & Upload in the Diagnose & Feedback menu) so that I can try to see what is going on?
Since the 1.13 release we now run fsck on VM on startup. This would detect previously unnoticed disk corruption issues which could make the docker daemon and the containers crash randomly. Since 1.13 we also changed the storage drivers to use overlay2 instead of aufs which should be much more stable, and we improved the stability of the underlying qcow2 block device drivers. Hence we expect disk corruption issues to be much less frequent (and hopefully to disappear completely).
Regarding the transition from 1.12 to 1.13, It is unclear what we can do to make the user experience better. These kinds of errors are usually impossible (or at least very hard) to recover fully. In the longer term, an import/export tool to save images, containers and volumes on the host filesystem would be very useful for this kind of use-cases.
Thanks again for your report and we hope you continue to use Docker for Mac!
I am letting this issue open as the disk corruption issue has maybe a deeper cause that needs to be investigated (although at first glance I haven't spotted anything obvious in the logs).
@v4tech I managed to get your diagnostic bundle, which unfortunately contains proof of auf corruption issues (similar to docker/for-mac#20). Docker for Mac 1.13 now ships with overlay2 storage drivers, so this should now be much more stable.
@samoht didn't really pay attention to what version I used before. But I'm using Docker daily and usually don't hesitate to update, so probably 1.12.
Oh my gosh! The same thing happened to me. I upgraded it from version 1.12.3 (13776) to version 1.13.1 (15353) and all data lost! I find the Docker (13776).app still in my Trash folder now. Is it possible to get the data back to the current Docker for mac? @samoht
@adoyle-h Really sorry to hear about that, and I am afraid your data is lost (unless you made a backup). Can you give me your diagnostic ID? That reset probably due to a disk corruption issue which was unnoticed in 1.12.3 (but would have caused random crashes) but that we now check more aggressively on 1.13.
@samoht 587FC35D-A371-45CD-9F69-3F7DBCC9038E
#1504 seems to be the same behaviour with 17.03.1-ce (stable)
Unfortunately, this issue happened to me today. This morning it saw the containers, but now (I did not reboot or package updates in-between) containers are gone.
I can see it with neither with docker ps -a (tried with sudo also), nor with kitematic.
One thing that I noticed is ‘off’ was docker-machine ls output that was ‘Saved’ in a state of default machine. I started machine by now but the issue still present. I sent diagnostic report, ID 9B4E7F28-8BC2-4E22-8B69-88947937F98A
Hope it will help find the issue.
Same issue here. One fine morning it was completely gone. It's second time I experience this. I wonder if there's at least reliable backup solution (which will back up volumes as well and easily restore stuff). To be honest, it's a real pain in the ass
Just happened to me today 9/6/2017. It happened when I upgraded to:
Version 17.06.2-ce-mac27 (19124) Channel: stable 428bd6ceae
Happened to me today as well. This really blows.
Just happened to me today, though while installing the update, it displayed "successfully copied existing images" in migration step.
Version 17.09.0-ce-mac32 (19506) Channel: stable cb86d843ba
Happened to me this morning after the upgrade to Version 17.09.0-ce-mac32 (19506). Opened Kitematic and all my containers were gone. Is there no way to recover? Diagnostic ID, 52BE127F-10BF-440B-A09E-BB1C7329F5C9
Lost all containers and images upgrading this morning as well.
Diagnostic ID: D5D9906B-B87B-4C0B-8D6E-6D48BF667629
Docker for Mac: version: 17.09.0-ce-mac32 (69202b202f497d4b6e627c3370781b9e4b51ec78) macOS: version 10.12.6 (build: 16G29) logs: /tmp/D5D9906B-B87B-4C0B-8D6E-6D48BF667629/20171002-094400.tar.gz