Skip to content

Instantly share code, notes, and snippets.

@grossws
Created December 21, 2014 20:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save grossws/6526f6d0bb7df861c614 to your computer and use it in GitHub Desktop.
Save grossws/6526f6d0bb7df861c614 to your computer and use it in GitHub Desktop.
docker upgrade (1.2.0->1.3.2) issue: old data-only container isn't mounted from `--volumes-from`
[{
"AppArmorProfile": "",
"Args": [
"postgres"
],
"Config": {
"AttachStderr": false,
"AttachStdin": false,
"AttachStdout": false,
"Cmd": [
"postgres"
],
"CpuShares": 0,
"Cpuset": "",
"Domainname": "",
"Entrypoint": [
"/docker-entrypoint.sh"
],
"Env": [
"LANG=C.UTF-8",
"POSTGRES_PASSWORD=xxx",
"PATH=/usr/lib/postgresql/9.3/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
"PG_MAJOR=9.3",
"PG_VERSION=9.3.5-1.pgdg70+1",
"PGDATA=/var/lib/postgresql/data"
],
"ExposedPorts": {
"5432/tcp": {}
},
"Hostname": "4e63e02c4d6c",
"Image": "postgres:9.3.5",
"Memory": 0,
"MemorySwap": 0,
"NetworkDisabled": false,
"OnBuild": null,
"OpenStdin": false,
"PortSpecs": null,
"StdinOnce": false,
"Tty": false,
"User": "",
"Volumes": {
"/var/lib/postgresql/data": {}
},
"WorkingDir": ""
},
"Created": "2014-12-21T20:00:16.402912953Z",
"Driver": "devicemapper",
"ExecDriver": "native-0.2",
"HostConfig": {
"Binds": null,
"CapAdd": null,
"CapDrop": null,
"ContainerIDFile": "",
"Devices": [],
"Dns": null,
"DnsSearch": null,
"ExtraHosts": null,
"Links": null,
"LxcConf": [],
"NetworkMode": "bridge",
"PortBindings": {
"5432/tcp": [
{
"HostIp": "",
"HostPort": "5432"
}
]
},
"Privileged": false,
"PublishAllPorts": false,
"RestartPolicy": {
"MaximumRetryCount": 0,
"Name": ""
},
"SecurityOpt": null,
"VolumesFrom": [
"crowd-postgres-data"
]
},
"HostnamePath": "/var/lib/docker/containers/4e63e02c4d6c603c1fd10d4f144d6bcc0876a2bdb8ee844f4fc59163af1bab02/hostname",
"HostsPath": "/var/lib/docker/containers/4e63e02c4d6c603c1fd10d4f144d6bcc0876a2bdb8ee844f4fc59163af1bab02/hosts",
"Id": "4e63e02c4d6c603c1fd10d4f144d6bcc0876a2bdb8ee844f4fc59163af1bab02",
"Image": "aaab661c1e3e8da2d9fc6872986cbd7b9ec835dcd3886d37722f1133baa3d2db",
"MountLabel": "system_u:object_r:svirt_sandbox_file_t:s0:c494,c992",
"Name": "/crowd-postgres.service",
"NetworkSettings": {
"Bridge": "docker0",
"Gateway": "172.17.42.1",
"IPAddress": "172.17.0.3",
"IPPrefixLen": 16,
"MacAddress": "02:42:ac:11:00:03",
"PortMapping": null,
"Ports": {
"5432/tcp": [
{
"HostIp": "0.0.0.0",
"HostPort": "5432"
}
]
}
},
"Path": "/docker-entrypoint.sh",
"ProcessLabel": "system_u:system_r:svirt_lxc_net_t:s0:c494,c992",
"ResolvConfPath": "/var/lib/docker/containers/4e63e02c4d6c603c1fd10d4f144d6bcc0876a2bdb8ee844f4fc59163af1bab02/resolv.conf",
"State": {
"ExitCode": 0,
"FinishedAt": "0001-01-01T00:00:00Z",
"Paused": false,
"Pid": 3925,
"Restarting": false,
"Running": true,
"StartedAt": "2014-12-21T20:00:17.017893159Z"
},
"Volumes": {
"/var/lib/postgresql/data": "/var/lib/docker/vfs/dir/97b97d281a316b3e30776cb30eef4d3b38f44d7cb5f8026da3ad4f90d3032963"
},
"VolumesRW": {
"/var/lib/postgresql/data": true
}
}
]
[{
"AppArmorProfile": "",
"Args": [
"/bin/true"
],
"Config": {
"AttachStderr": true,
"AttachStdin": false,
"AttachStdout": true,
"Cmd": [
"/bin/true"
],
"CpuShares": 0,
"Cpuset": "",
"Domainname": "",
"Entrypoint": [
"/docker-entrypoint.sh"
],
"Env": [
"PATH=/usr/lib/postgresql/9.3/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
"LANG=en_US.utf8",
"PG_MAJOR=9.3",
"PG_VERSION=9.3.5-1.pgdg70+1",
"PGDATA=/var/lib/postgresql/data"
],
"ExposedPorts": {
"5432/tcp": {}
},
"Hostname": "8038554f9229",
"Image": "postgres:9.3.5",
"Memory": 0,
"MemorySwap": 0,
"NetworkDisabled": false,
"OnBuild": null,
"OpenStdin": false,
"PortSpecs": null,
"StdinOnce": false,
"Tty": false,
"User": "",
"Volumes": {
"/var/lib/postgresql/data": {}
},
"WorkingDir": ""
},
"Created": "2014-12-04T23:14:11.952428206Z",
"Driver": "devicemapper",
"ExecDriver": "native-0.2",
"HostConfig": {
"Binds": [
"/opt/crowd-postgres-data:/var/lib/postgresql/data"
],
"CapAdd": null,
"CapDrop": null,
"ContainerIDFile": "",
"Devices": [],
"Dns": null,
"DnsSearch": null,
"ExtraHosts": null,
"Links": null,
"LxcConf": [],
"NetworkMode": "bridge",
"PortBindings": {},
"Privileged": false,
"PublishAllPorts": false,
"RestartPolicy": {
"MaximumRetryCount": 0,
"Name": ""
},
"SecurityOpt": null,
"VolumesFrom": null
},
"HostnamePath": "/var/lib/docker/containers/8038554f92290ffbf5497107b56336aa0c128147241b1bf5095ee5087221e608/hostname",
"HostsPath": "/var/lib/docker/containers/8038554f92290ffbf5497107b56336aa0c128147241b1bf5095ee5087221e608/hosts",
"Id": "8038554f92290ffbf5497107b56336aa0c128147241b1bf5095ee5087221e608",
"Image": "aaab661c1e3e8da2d9fc6872986cbd7b9ec835dcd3886d37722f1133baa3d2db",
"MountLabel": "system_u:object_r:svirt_sandbox_file_t:s0:c773,c774",
"Name": "/crowd-postgres-data",
"NetworkSettings": {
"Bridge": "",
"Gateway": "",
"IPAddress": "",
"IPPrefixLen": 0,
"MacAddress": "",
"PortMapping": null,
"Ports": null
},
"Path": "/docker-entrypoint.sh",
"ProcessLabel": "system_u:system_r:svirt_lxc_net_t:s0:c773,c774",
"ResolvConfPath": "/var/lib/docker/containers/8038554f92290ffbf5497107b56336aa0c128147241b1bf5095ee5087221e608/resolv.conf",
"State": {
"ExitCode": 0,
"FinishedAt": "2014-12-04T23:14:12.606676765Z",
"Paused": false,
"Pid": 0,
"Restarting": false,
"Running": false,
"StartedAt": "2014-12-04T23:14:12.470326318Z"
},
"Volumes": {
"/var/lib/postgresql/data": "/opt/crowd-postgres-data"
},
"VolumesRW": {
"/var/lib/postgresql/data": true
}
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment