Docker Community Forums

Share and learn in the Docker community.

Failure in migration to docker engine 1.10

Hi,

I have a VM that runs Ubuntu 14.04, with lxc-docker-1.9.1 installed on it.
When I upgrade my VM to a newer image that runs Ubuntu 18.04 and has docker .io on it, I expect that the docker graph will be migrated to engine 1.10, as described in https://docs.docker.com/engine/migration/.

I see 3 different behaviors, dependent on the docker .io version installed on the image:

  1. When I upgrade to an image with docker.io:18.09.5-0ubuntu1~18.04.2, everything works as expected.

  2. When I upgrade to an image with docker.io:18.09.7-0ubuntu1~18.04.4, the migration fails; I see in docker logs:

msg="Graph migration failed: \"migration is not supported\". Your old graph data was found to be too inconsistent for upgrading to content-addressable storage. Some of the old data was probably not upgraded. We recommend starting over with a clean storage directory if possible."
What does that error mean?

  1. When I upgrade to an image with docker.io:19.03.6-0ubuntu1~18.04.1, there is no migration at all; I saw in https://github.com/moby/moby/pull/38265 that the 1.10 migrator code was removed from 1.10 code ~2 years ago. Given that, is there anything I can do in order to migrate a graph from lxc-docker-1.9.1 to docker.io:19.03.6-0ubuntu1~18.04.1?

Thanks in advance,
Eitan

If you still have your old graph dirs can you send me all files in /var/lib/docker/containers/07369a90b03c3a2abf4f567b7b51a22eab45ec6b00d7320b6843a0d52abc839b and check if you have directories /var/lib/docker/overlay/07369a90b03c3a2abf4f567b7b51a22eab45ec6b00d7320b6843a0d52abc839b and ``/var/lib/docker/overlay/07369a90b03c3a2abf4f567b7b51a22eab45ec6b00d7320b6843a0d52abc839b-init. Can you also check the next ID in /var/lib/docker/containersafter07369…`.

Hi,
I have only one container; its id is d23fb8daaa72252769f89fb162050f3993a1f96348c38f46c1036f00bf0ac31a. So in <graph_dir>/containers, I have one directory, d23fb8daaa72252769f89fb162050f3993a1f96348c38f46c1036f00bf0ac31a.

These are the 2 files I have in this folder:

config.json:

{
“State”:{
“Running”:false,
“Paused”:false,
“Restarting”:false,
“OOMKilled”:false,
“Dead”:false,
“Pid”:0,
“ExitCode”:0,
“Error”:"",
“StartedAt”:“0001-01-01T00:00:00Z”,
“FinishedAt”:“0001-01-01T00:00:00Z”
},
“ID”:“d23fb8daaa72252769f89fb162050f3993a1f96348c38f46c1036f00bf0ac31a”,
“Created”:“2020-09-02T14:19:57.917876581Z”,
“Path”:"/usr/bin/sshd",
“Args”:[
“-D”
],
“Config”:{
“Hostname”:“d23fb8daaa72”,
“Domainname”:"",
“User”:"",
“AttachStdin”:false,
“AttachStdout”:true,
“AttachStderr”:true,
“ExposedPorts”:{
“22/tcp”:{

     }
  },
  "Tty":false,
  "OpenStdin":false,
  "StdinOnce":false,
  "Env":null,
  "Cmd":[
     "-D"
  ],
  "Image":"e3241eaac8a0a83970b20c157058601e5d18359046dd594c51dec5747ce6b879",
  "Volumes":null,
  "WorkingDir":"",
  "Entrypoint":[
     "/usr/bin/sshd"
  ],
  "OnBuild":null,
  "Labels":{
     "is_public":"no"
  },
  "StopSignal":"SIGTERM"

},
“Image”:“e3241eaac8a0a83970b20c157058601e5d18359046dd594c51dec5747ce6b879”,
“NetworkSettings”:{
“Bridge”:"",
“SandboxID”:"",
“HairpinMode”:false,
“LinkLocalIPv6Address”:"",
“LinkLocalIPv6PrefixLen”:0,
“Networks”:null,
“Ports”:null,
“SandboxKey”:"",
“SecondaryIPAddresses”:null,
“SecondaryIPv6Addresses”:null,
“IsAnonymousEndpoint”:false
},
“LogPath”:"",
“Name”:"/container-00000001",
“Driver”:“btrfs”,
“ExecDriver”:“native-0.2”,
“MountLabel”:"",
“ProcessLabel”:"",
“RestartCount”:0,
“HasBeenStartedBefore”:false,
“HasBeenManuallyStopped”:false,
“AppArmorProfile”:"",
“HostnamePath”:"",
“HostsPath”:"",
“ShmPath”:"",
“MqueuePath”:"",
“MountPoints”:{
“/sys”:{
“Name”:"",
“Destination”:"/sys",
“Driver”:"",
“RW”:false,
“Source”:"/export/images_repository/sys1",
“Relabel”:“ro”
}
},
“ResolvConfPath”:"",
“Volumes”:{
“/sys”:"/export/images_repository/sys1"
},
“VolumesRW”:{
“/sys”:false
}
}

hostconfig.json:

{
“Binds”:[
“/export/images_repository/sys1:/sys:ro”
],
“ContainerIDFile”:"",
“LxcConf”:[

],
“Memory”:0,
“MemoryReservation”:0,
“MemorySwap”:0,
“KernelMemory”:0,
“CpuShares”:0,
“CpuPeriod”:0,
“CpusetCpus”:"",
“CpusetMems”:"",
“CpuQuota”:0,
“BlkioWeight”:0,
“OomKillDisable”:false,
“MemorySwappiness”:-1,
“Privileged”:false,
“PortBindings”:{

},
“Links”:null,
“PublishAllPorts”:false,
“Dns”:[

],
“DnsOptions”:[

],
“DnsSearch”:[

],
“ExtraHosts”:null,
“VolumesFrom”:null,
“Devices”:[

],
“NetworkMode”:“default”,
“IpcMode”:"",
“PidMode”:"",
“UTSMode”:"",
“CapAdd”:null,
“CapDrop”:null,
“GroupAdd”:null,
“RestartPolicy”:{
“Name”:“no”,
“MaximumRetryCount”:0
},
“SecurityOpt”:null,
“ReadonlyRootfs”:false,
“Ulimits”:null,
“LogConfig”:{
“Type”:"",
“Config”:{

  }

},
“CgroupParent”:"/docker/dgroup-00000001",
“ConsoleSize”:[
0,
0
],
“VolumeDriver”:""
}