Migrated containers don't include data
Opened this issue · 2 comments
FezVrasta commented
Describe the bug
I have a postgres container on Docker Desktop, I ran the migration with OrbStack but when I start the container from OrbStack the database is empty.
To Reproduce
No response
Expected behavior
No response
Diagnostic report (REQUIRED)
OrbStack info:
Version: 1.8.1
Commit: 442ca0f634f1e62aa1f00c2c54353e69830cc4d5 (v1.8.1)
System info:
macOS: 15.1 (24B83)
CPU: arm64, 10 cores
CPU model: Apple M1 Max
Model: MacBookPro18,2
Memory: 32 GiB
Full report: https://orbstack.dev/_admin/diag/orbstack-diagreport_2024-11-15T12-56-45.688415Z.zip
Screenshots and additional context (optional)
No response
kdrag0n commented
Can you share the output of docker inspect <postgres container name or ID>
in Docker Desktop?
FezVrasta commented
[
{
"Id": "fd81f84567ca1498e77476e4f83fa9c16cb4bfd861f2f5f6db101fc5804bbbc0",
"Created": "2024-08-25T15:56:34.468212087Z",
"Path": "docker-entrypoint.sh",
"Args": [
"-p",
"5102"
],
"State": {
"Status": "running",
"Running": true,
"Paused": false,
"Restarting": false,
"OOMKilled": false,
"Dead": false,
"Pid": 42514,
"ExitCode": 0,
"Error": "",
"StartedAt": "2024-11-15T17:35:37.062636338Z",
"FinishedAt": "2024-11-15T16:41:19.732848719Z",
"Health": {
"Status": "healthy",
"FailingStreak": 0,
"Log": [
{
"Start": "2024-11-17T08:43:34.211150545Z",
"End": "2024-11-17T08:43:34.268488587Z",
"ExitCode": 0,
"Output": "/var/run/postgresql:5102 - accepting connections\n"
},
{
"Start": "2024-11-17T08:43:39.270122465Z",
"End": "2024-11-17T08:43:39.320879756Z",
"ExitCode": 0,
"Output": "/var/run/postgresql:5102 - accepting connections\n"
},
{
"Start": "2024-11-17T08:43:44.323000134Z",
"End": "2024-11-17T08:43:44.355441175Z",
"ExitCode": 0,
"Output": "/var/run/postgresql:5102 - accepting connections\n"
},
{
"Start": "2024-11-17T08:43:49.357011761Z",
"End": "2024-11-17T08:43:49.423968678Z",
"ExitCode": 0,
"Output": "/var/run/postgresql:5102 - accepting connections\n"
},
{
"Start": "2024-11-17T08:43:54.426779388Z",
"End": "2024-11-17T08:43:54.57001193Z",
"ExitCode": 0,
"Output": "/var/run/postgresql:5102 - accepting connections\n"
}
]
}
},
"Image": "sha256:cb65f77993aad07b17f7a8c35090e438dfe822aeb6e9279a63903ea20ab3e5e9",
"ResolvConfPath": "/var/lib/docker/containers/fd81f84567ca1498e77476e4f83fa9c16cb4bfd861f2f5f6db101fc5804bbbc0/resolv.conf",
"HostnamePath": "/var/lib/docker/containers/fd81f84567ca1498e77476e4f83fa9c16cb4bfd861f2f5f6db101fc5804bbbc0/hostname",
"HostsPath": "/var/lib/docker/containers/fd81f84567ca1498e77476e4f83fa9c16cb4bfd861f2f5f6db101fc5804bbbc0/hosts",
"LogPath": "/var/lib/docker/containers/fd81f84567ca1498e77476e4f83fa9c16cb4bfd861f2f5f6db101fc5804bbbc0/fd81f84567ca1498e77476e4f83fa9c16cb4bfd861f2f5f6db101fc5804bbbc0-json.log",
"Name": "/docker-postgres-1",
"RestartCount": 0,
"Driver": "overlay2",
"Platform": "linux",
"MountLabel": "",
"ProcessLabel": "",
"AppArmorProfile": "",
"ExecIDs": null,
"HostConfig": {
"Binds": null,
"ContainerIDFile": "",
"LogConfig": {
"Type": "json-file",
"Config": {}
},
"NetworkMode": "docker_default",
"PortBindings": {
"5102/tcp": [
{
"HostIp": "",
"HostPort": "5102"
}
]
},
"RestartPolicy": {
"Name": "no",
"MaximumRetryCount": 0
},
"AutoRemove": false,
"VolumeDriver": "",
"VolumesFrom": null,
"ConsoleSize": [
0,
0
],
"CapAdd": null,
"CapDrop": null,
"CgroupnsMode": "private",
"Dns": [],
"DnsOptions": [],
"DnsSearch": [],
"ExtraHosts": [],
"GroupAdd": null,
"IpcMode": "private",
"Cgroup": "",
"Links": null,
"OomScoreAdj": 0,
"PidMode": "",
"Privileged": false,
"PublishAllPorts": false,
"ReadonlyRootfs": false,
"SecurityOpt": null,
"UTSMode": "",
"UsernsMode": "",
"ShmSize": 67108864,
"Runtime": "runc",
"Isolation": "",
"CpuShares": 0,
"Memory": 0,
"NanoCpus": 0,
"CgroupParent": "",
"BlkioWeight": 0,
"BlkioWeightDevice": null,
"BlkioDeviceReadBps": null,
"BlkioDeviceWriteBps": null,
"BlkioDeviceReadIOps": null,
"BlkioDeviceWriteIOps": null,
"CpuPeriod": 0,
"CpuQuota": 0,
"CpuRealtimePeriod": 0,
"CpuRealtimeRuntime": 0,
"CpusetCpus": "",
"CpusetMems": "",
"Devices": null,
"DeviceCgroupRules": null,
"DeviceRequests": null,
"MemoryReservation": 0,
"MemorySwap": 0,
"MemorySwappiness": null,
"OomKillDisable": null,
"PidsLimit": null,
"Ulimits": null,
"CpuCount": 0,
"CpuPercent": 0,
"IOMaximumIOps": 0,
"IOMaximumBandwidth": 0,
"MaskedPaths": [
"/proc/asound",
"/proc/acpi",
"/proc/kcore",
"/proc/keys",
"/proc/latency_stats",
"/proc/timer_list",
"/proc/timer_stats",
"/proc/sched_debug",
"/proc/scsi",
"/sys/firmware",
"/sys/devices/virtual/powercap"
],
"ReadonlyPaths": [
"/proc/bus",
"/proc/fs",
"/proc/irq",
"/proc/sys",
"/proc/sysrq-trigger"
]
},
"GraphDriver": {
"Data": {
"LowerDir": "/var/lib/docker/overlay2/e56d23d8e60c3fde4f3c3690c20a0b5b3bc20ea20027ae1fb092635fa5cd47ae-init/diff:/var/lib/docker/overlay2/637aa6b6854877b732edc2f0b1a97af168dd3d99715a1065c7294a2a93c72ef4/diff:/var/lib/docker/overlay2/360325fc82d376653bc7073f14223f7756b75310a8808a204d5ebed4cc68fea0/diff:/var/lib/docker/overlay2/130ac8d92d826e1ed3416eb47858639069a72fbbca289cdbb39d8c28c4e9ba1c/diff:/var/lib/docker/overlay2/d57ab7f929fd60a05b67c2c5b8c6c0ae2a06b1f4e1bf5c15b844e721074fdedc/diff:/var/lib/docker/overlay2/f15ecfaf7d61c73e1663086208cc8319780f0cc5a48381216a29004fad4e4858/diff:/var/lib/docker/overlay2/05de43550882c1a3af99a93c2afefa5836479560dba28dd657a42d0595bdd5ee/diff:/var/lib/docker/overlay2/607f0fc01647289e1b74aeb097b2d094ddcd13d4979368d7245e824604f5c4d5/diff:/var/lib/docker/overlay2/ed1eebe28f25d4f0faf2ea39798e2c411c9f81fdc6b221a7e51298ddcd18bfd0/diff:/var/lib/docker/overlay2/35b41dc6055f1f7e0ac7cbdefc8eec1e42fab37bf9803308643c9aacaba58eeb/diff:/var/lib/docker/overlay2/8be0cee06afc0eecc6c03f22e591fb4e86c48f3e21d5ce1d5833957c10caa78a/diff:/var/lib/docker/overlay2/df20f3baf41d45a5a13ae92c1356ba30a1b85e360d59f28403c4e204c5355211/diff:/var/lib/docker/overlay2/5862b00178d09f29f495f62812f812179126f777bdc4c801b0d6d5ece4050ded/diff:/var/lib/docker/overlay2/84953b0da947370608a2bdb08d97c165cecabf6432c76035c54147169f738918/diff:/var/lib/docker/overlay2/6977f2a00f7be57b61767c53ef008ac25d859f635754e1d73408b2dd4ae6d4da/diff",
"MergedDir": "/var/lib/docker/overlay2/e56d23d8e60c3fde4f3c3690c20a0b5b3bc20ea20027ae1fb092635fa5cd47ae/merged",
"UpperDir": "/var/lib/docker/overlay2/e56d23d8e60c3fde4f3c3690c20a0b5b3bc20ea20027ae1fb092635fa5cd47ae/diff",
"WorkDir": "/var/lib/docker/overlay2/e56d23d8e60c3fde4f3c3690c20a0b5b3bc20ea20027ae1fb092635fa5cd47ae/work"
},
"Name": "overlay2"
},
"Mounts": [
{
"Type": "volume",
"Name": "93dca697947c737dba31bd4300e4a7a7840f4d09d998a93047975cff1f012a0d",
"Source": "/var/lib/docker/volumes/93dca697947c737dba31bd4300e4a7a7840f4d09d998a93047975cff1f012a0d/_data",
"Destination": "/var/lib/postgresql/data",
"Driver": "local",
"Mode": "",
"RW": true,
"Propagation": ""
}
],
"Config": {
"Hostname": "fd81f84567ca",
"Domainname": "",
"User": "",
"AttachStdin": false,
"AttachStdout": true,
"AttachStderr": true,
"ExposedPorts": {
"5102": {},
"5102/tcp": {},
"5432/tcp": {}
},
"Tty": false,
"OpenStdin": false,
"StdinOnce": false,
"Env": [
"POSTGRES_PASSWORD=password",
"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/postgresql/16/bin",
"GOSU_VERSION=1.17",
"LANG=en_US.utf8",
"PG_MAJOR=16",
"PG_VERSION=16.2-1.pgdg120+2",
"PGDATA=/var/lib/postgresql/data"
],
"Cmd": [
"-p",
"5102"
],
"Healthcheck": {
"Test": [
"CMD-SHELL",
"pg_isready -U postgres -p 5102"
],
"Interval": 5000000000,
"Timeout": 5000000000,
"Retries": 5
},
"Image": "postgres:16.2",
"Volumes": {
"/var/lib/postgresql/data": {}
},
"WorkingDir": "",
"Entrypoint": [
"docker-entrypoint.sh"
],
"OnBuild": null,
"Labels": {
"com.docker.compose.config-hash": "23856d043989f2148311345aca74cb835988c7431a27a2cdd229ea686940ca18",
"com.docker.compose.container-number": "1",
"com.docker.compose.depends_on": "",
"com.docker.compose.image": "sha256:cb65f77993aad07b17f7a8c35090e438dfe822aeb6e9279a63903ea20ab3e5e9",
"com.docker.compose.oneoff": "False",
"com.docker.compose.project": "docker",
"com.docker.compose.project.config_files": "/Users/federicozivolo/Developer/<redacted>/marketplace/docker/compose.yaml",
"com.docker.compose.project.working_dir": "/Users/federicozivolo/Developer/<redacted>/marketplace/docker",
"com.docker.compose.service": "postgres",
"com.docker.compose.version": "2.29.1"
},
"StopSignal": "SIGINT"
},
"NetworkSettings": {
"Bridge": "",
"SandboxID": "5ac6de3dfcb7bc7c5ef006424d69f65111a3486c4f8751079c3c48cd7a96224a",
"SandboxKey": "/var/run/docker/netns/5ac6de3dfcb7",
"Ports": {
"5102/tcp": [
{
"HostIp": "0.0.0.0",
"HostPort": "5102"
}
],
"5432/tcp": null
},
"HairpinMode": false,
"LinkLocalIPv6Address": "",
"LinkLocalIPv6PrefixLen": 0,
"SecondaryIPAddresses": null,
"SecondaryIPv6Addresses": null,
"EndpointID": "",
"Gateway": "",
"GlobalIPv6Address": "",
"GlobalIPv6PrefixLen": 0,
"IPAddress": "",
"IPPrefixLen": 0,
"IPv6Gateway": "",
"MacAddress": "",
"Networks": {
"docker_default": {
"IPAMConfig": null,
"Links": null,
"Aliases": [
"docker-postgres-1",
"postgres"
],
"MacAddress": "02:42:ac:12:00:03",
"DriverOpts": null,
"NetworkID": "4e46e85e214d507fe82589a18961e0b3818def3c9a0030f3d8bb0499cc93be88",
"EndpointID": "72f0d8b76d89147fd76fbebb7fbb8befa4eacd4818b6cbcf1c2daace6d947954",
"Gateway": "172.18.0.1",
"IPAddress": "172.18.0.3",
"IPPrefixLen": 16,
"IPv6Gateway": "",
"GlobalIPv6Address": "",
"GlobalIPv6PrefixLen": 0,
"DNSNames": [
"docker-postgres-1",
"postgres",
"fd81f84567ca"
]
}
}
}
}
]