2024-04-03, 01:41 PM
(This post was last modified: 2024-04-03, 01:45 PM by gladtr. Edited 1 time in total.)
docker exec -it 760a886b3738 bash
docker_inspect 760a886b3738
docker inspect --format {{.Mounts}} 760a886b3738
Now it remains to understand how to find where the permanent data containing the configuration is stored.
With the last command I got a list of volumes and examined them with ls -l and there - empty!((
drwxr-xr-x 1 root root 0 Apr 3 09:31 temp
root@mediasrv:~# ls -l /volume1/@docker/volumes/297b9db18473e2611e13a97e5f78975d517764be209c0b9e8ff0b316a3ec6f1d/_data/temp
total 0[/code]
I also tried looking at the database
but I'm very weak in this topic
However, I will show you my research.
so you can understand that I can do this
docker_inspect 760a886b3738
Code:
[
{
"Id": "760a886b37381cbb4a70f3178c2598f89c05246c996cdf08f6e34e562941fc74",
"Created": "2024-04-03T05:31:12.001819201Z",
"Path": "/jellyfin/jellyfin",
"Args": [],
"State": {
"Status": "running",
"Running": true,
"Paused": false,
"Restarting": false,
"OOMKilled": false,
"Dead": false,
"Pid": 22506,
"ExitCode": 0,
"Error": "",
"StartedAt": "2024-04-03T08:57:49.895594481Z",
"FinishedAt": "2024-04-03T08:49:42.496256861Z",
"Health": {
"Status": "healthy",
"FailingStreak": 0,
"Log": [
{
"Start": "2024-04-03T16:30:37.136513678+03:00",
"End": "2024-04-03T16:30:37.216019412+03:00",
"ExitCode": 0,
"Output": "Healthy"
},
{
"Start": "2024-04-03T16:31:07.299929668+03:00",
"End": "2024-04-03T16:31:07.437165842+03:00",
"ExitCode": 0,
"Output": "Healthy"
},
{
"Start": "2024-04-03T16:31:37.619517586+03:00",
"End": "2024-04-03T16:31:37.698743654+03:00",
"ExitCode": 0,
"Output": "Healthy"
},
{
"Start": "2024-04-03T16:32:07.814820298+03:00",
"End": "2024-04-03T16:32:07.922735144+03:00",
"ExitCode": 0,
"Output": "Healthy"
},
{
"Start": "2024-04-03T16:32:38.025264081+03:00",
"End": "2024-04-03T16:32:38.110875153+03:00",
"ExitCode": 0,
"Output": "Healthy"
}
]
},
"StartedTs": 1712134669,
"FinishedTs": 1712134182
},
"Image": "sha256:ca404505fe6f205e266fefe15df84ebdbdd728a45fa67ec306625c7f2a2c4b3e",
"ResolvConfPath": "/volume1/@docker/containers/760a886b37381cbb4a70f3178c2598f89c05246c996cdf08f6e34e562941fc74/resolv.conf",
"HostnamePath": "/volume1/@docker/containers/760a886b37381cbb4a70f3178c2598f89c05246c996cdf08f6e34e562941fc74/hostname",
"HostsPath": "/volume1/@docker/containers/760a886b37381cbb4a70f3178c2598f89c05246c996cdf08f6e34e562941fc74/hosts",
"LogPath": "/volume1/@docker/containers/760a886b37381cbb4a70f3178c2598f89c05246c996cdf08f6e34e562941fc74/log.db",
"Name": "/jellyfin-jellyfin1",
"RestartCount": 0,
"Driver": "btrfs",
"Platform": "linux",
"MountLabel": "",
"ProcessLabel": "",
"AppArmorProfile": "docker-default",
"ExecIDs": null,
"HostConfig": {
"Binds": [
"/volume1/video:/mVideo:rw",
"/volume1/photo:/mPhoto:rw"
],
"ContainerIDFile": "",
"LogConfig": {
"Type": "db",
"Config": {}
},
"NetworkMode": "host",
"PortBindings": null,
"RestartPolicy": {
"Name": "always",
"MaximumRetryCount": 0
},
"AutoRemove": false,
"VolumeDriver": "",
"VolumesFrom": null,
"CapAdd": null,
"CapDrop": null,
"CgroupnsMode": "host",
"Dns": null,
"DnsOptions": null,
"DnsSearch": null,
"ExtraHosts": null,
"GroupAdd": null,
"IpcMode": "private",
"Cgroup": "",
"Links": null,
"OomScoreAdj": 0,
"PidMode": "",
"Privileged": false,
"PublishAllPorts": false,
"ReadonlyRootfs": false,
"SecurityOpt": null,
"UTSMode": "",
"UsernsMode": "",
"ShmSize": 67108864,
"Runtime": "runc",
"Env": [
"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
"HEALTHCHECK_URL=http://192.168.0.68:8096/health",
"DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1",
"LC_ALL=en_US.UTF-8",
"LANG=en_US.UTF-8",
"LANGUAGE=en_US:en",
"JELLYFIN_DATA_DIR=/configs",
"JELLYFIN_CACHE_DIR=/cache",
"JELLYFIN_CONFIG_DIR=/configs/config",
"JELLYFIN_LOG_DIR=/configs/log",
"JELLYFIN_WEB_DIR=/jellyfin/jellyfin-web",
"JELLYFIN_FFMPEG=/usr/lib/jellyfin-ffmpeg/ffmpeg",
"MALLOC_TRIM_THRESHOLD_=131072"
],
"ConsoleSize": [
0,
0
],
"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,
"KernelMemory": 0,
"KernelMemoryTCP": 0,
"MemoryReservation": 0,
"MemorySwap": 0,
"MemorySwappiness": null,
"OomKillDisable": false,
"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"
],
"ReadonlyPaths": [
"/proc/bus",
"/proc/fs",
"/proc/irq",
"/proc/sys",
"/proc/sysrq-trigger"
]
},
"GraphDriver": {
"Data": null,
"Name": "btrfs"
},
"Mounts": [
{
"Type": "bind",
"Source": "/volume1/video",
"Destination": "/mVideo",
"Mode": "rw",
"RW": true,
"Propagation": "rprivate"
},
{
"Type": "bind",
"Source": "/volume1/photo",
"Destination": "/mPhoto",
"Mode": "rw",
"RW": true,
"Propagation": "rprivate"
},
{
"Type": "volume",
"Name": "297b9db18473e2611e13a97e5f78975d517764be209c0b9e8ff0b316a3ec6f1d",
"Source": "/volume1/@docker/volumes/297b9db18473e2611e13a97e5f78975d517764be209c0b9e8ff0b316a3ec6f1d/_data",
"Destination": "/cache",
"Driver": "local",
"Mode": "",
"RW": true,
"Propagation": ""
},
{
"Type": "volume",
"Name": "a9815094c6de74f31614188584e85f748e9b2cb3bcfadddcd4595904016272cb",
"Source": "/volume1/@docker/volumes/a9815094c6de74f31614188584e85f748e9b2cb3bcfadddcd4595904016272cb/_data",
"Destination": "/config",
"Driver": "local",
"Mode": "",
"RW": true,
"Propagation": ""
}
],
"Config": {
"Hostname": "jellyfin-jellyfin1",
"Domainname": "",
"User": "",
"AttachStdin": false,
"AttachStdout": false,
"AttachStderr": false,
"ExposedPorts": {
"8096/tcp": {}
},
"Tty": true,
"OpenStdin": true,
"StdinOnce": false,
"Env": [
"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
"HEALTHCHECK_URL=http://192.168.0.68:8096/health",
"DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1",
"LC_ALL=en_US.UTF-8",
"LANG=en_US.UTF-8",
"LANGUAGE=en_US:en",
"JELLYFIN_DATA_DIR=/configs",
"JELLYFIN_CACHE_DIR=/cache",
"JELLYFIN_CONFIG_DIR=/configs/config",
"JELLYFIN_LOG_DIR=/configs/log",
"JELLYFIN_WEB_DIR=/jellyfin/jellyfin-web",
"JELLYFIN_FFMPEG=/usr/lib/jellyfin-ffmpeg/ffmpeg",
"MALLOC_TRIM_THRESHOLD_=131072"
],
"Cmd": null,
"Healthcheck": {
"Test": [
"CMD-SHELL",
"curl -Lk -fsS \"${HEALTHCHECK_URL}\" || exit 1"
],
"Interval": 30000000000,
"Timeout": 30000000000,
"StartPeriod": 10000000000,
"Retries": 3
},
"Image": "jellyfin/jellyfin:latest",
"Volumes": {
"/cache": {},
"/config": {}
},
"WorkingDir": "",
"Entrypoint": [
"/jellyfin/jellyfin"
],
"OnBuild": null,
"Labels": {},
"DDSM": false
},
"NetworkSettings": {
"Bridge": "",
"SandboxID": "9185127ed88d4583097d7968c33d04af2be7d91a75ef8fe19ccb174a6557eed1",
"HairpinMode": false,
"LinkLocalIPv6Address": "",
"LinkLocalIPv6PrefixLen": 0,
"Ports": {},
"SandboxKey": "/var/run/docker/netns/default",
"SecondaryIPAddresses": null,
"SecondaryIPv6Addresses": null,
"EndpointID": "",
"Gateway": "",
"GlobalIPv6Address": "",
"GlobalIPv6PrefixLen": 0,
"IPAddress": "",
"IPPrefixLen": 0,
"IPv6Gateway": "",
"MacAddress": "",
"Networks": {
"host": {
"IPAMConfig": null,
"Links": null,
"Aliases": null,
"NetworkID": "60cb816d2283a0065ba694f08a37dd54074cdb9cbd6e1fe0416f0ec0aac2088c",
"EndpointID": "c8402afa9c3b324a86de5b2111d168524348cd770277d3e16b0f00a545e3eb44",
"Gateway": "",
"IPAddress": "",
"IPPrefixLen": 0,
"IPv6Gateway": "",
"GlobalIPv6Address": "",
"GlobalIPv6PrefixLen": 0,
"MacAddress": "",
"DriverOpts": null
}
}
}
}
]
docker inspect --format {{.Mounts}} 760a886b3738
Code:
[{bind /volume1/video /mVideo rw true rprivate} {bind /volume1/photo /mPhoto rw true rprivate} {volume 297b9db18473e2611e13a97e5f78975d517764be209c0b9e8ff0b316a3ec6f1d /volume1/@docker/volumes/297b9db18473e2611e13a97e5f78975d517764be209c0b9e8ff0b316a3ec6f1d/_data /cache local true } {volume a9815094c6de74f31614188584e85f748e9b2cb3bcfadddcd4595904016272cb /volume1/@docker/volumes/a9815094c6de74f31614188584e85f748e9b2cb3bcfadddcd4595904016272cb/_data /config local true }]
Now it remains to understand how to find where the permanent data containing the configuration is stored.
With the last command I got a list of volumes and examined them with ls -l and there - empty!((
Code:
root@mediasrv:~# ls -l /volume1/@docker/volumes/297b9db18473e2611e13a97e5f78975d517764be209c0b9e8ff0b316a3ec6f1d/_data
total 0
[code]root@mediasrv:~# ls -l /volume1/@docker/volumes/a9815094c6de74f31614188584e85f748e9b2cb3bcfadddcd4595904016272cb/_data /config
/config:
total 0
drwxr-xr-x 2 root root 0 Apr 3 11:15 pool
drwxr-xr-x 2 root root 0 Apr 3 11:15 rodsys
drwxr-xr-x 6 root root 0 Apr 3 16:38 target
drwxr-xr-x 2 root root 0 Apr 2 19:16 volume
drwxr-xr-x 2 root root 0 Apr 3 11:16 vsys
/volume1/@docker/volumes/a9815094c6de74f31614188584e85f748e9b2cb3bcfadddcd4595904016272cb/_data:
total 0
root@mediasrv:~# ls -l /volume1/@docker/volumes/a9815094c6de74f31614188584e85f748e9b2cb3bcfadddcd4595904016272cb/_data
total 0
root@mediasrv:~# ls -l /volume1/@docker/volumes/a9815094c6de74f31614188584e85f748e9b2cb3bcfadddcd4595904016272cb/_data /config
/config:
total 0
drwxr-xr-x 2 root root 0 Apr 3 11:15 pool
drwxr-xr-x 2 root root 0 Apr 3 11:15 rodsys
drwxr-xr-x 6 root root 0 Apr 3 16:39 target
drwxr-xr-x 2 root root 0 Apr 2 19:16 volume
drwxr-xr-x 2 root root 0 Apr 3 11:16 vsys
/volume1/@docker/volumes/a9815094c6de74f31614188584e85f748e9b2cb3bcfadddcd4595904016272cb/_data:
total 0
root@mediasrv:~# ls -l /volume1/@docker/volumes/a9815094c6de74f31614188584e85f748e9b2cb3bcfadddcd4595904016272cb/_data /config/pool/
/config/pool/:
total 0
-r--r--r-- 1 root root 4096 Apr 3 16:39 cache_info
-rw-r--r-- 1 root root 4096 Apr 3 16:39 ext_jnl_cache_cnt
-rw-r--r-- 1 root root 4096 Apr 3 16:39 ext_jnl_enable
-rw-r--r-- 1 root root 4096 Apr 3 16:39 ext_jnl_path
-rw-r--r-- 1 root root 4096 Apr 3 16:39 ext_jnl_suspend
-r--r--r-- 1 root root 4096 Apr 3 16:39 help
-rw-r--r-- 1 root root 4096 Apr 3 16:39 preread_control
/volume1/@docker/volumes/a9815094c6de74f31614188584e85f748e9b2cb3bcfadddcd4595904016272cb/_data:
total 0
root@mediasrv:~# ls -l /volume1/@docker/volumes/a9815094c6de74f31614188584e85f748e9b2cb3bcfadddcd4595904016272cb/_data /config/pool/rodsys
ls: cannot access '/config/pool/rodsys': No such file or directory
/volume1/@docker/volumes/a9815094c6de74f31614188584e85f748e9b2cb3bcfadddcd4595904016272cb/_data:
total 0
root@mediasrv:~# ls -l /volume1/@docker/volumes/a9815094c6de74f31614188584e85f748e9b2cb3bcfadddcd4595904016272cb/_data /config/rodsys
/config/rodsys:
total 0
-r--r--r-- 1 root root 4096 Apr 3 16:40 help
-r--r--r-- 1 root root 4096 Apr 3 16:40 local_key
-rw-r--r-- 1 root root 4096 Apr 3 16:40 throttle_interval_msec
/volume1/@docker/volumes/a9815094c6de74f31614188584e85f748e9b2cb3bcfadddcd4595904016272cb/_data:
total 0
root@mediasrv:~# ls -l /volume1/@docker/volumes/a9815094c6de74f31614188584e85f748e9b2cb3bcfadddcd4595904016272cb/_data /config/target
/config/target:
total 0
drwxr-xr-x 8 root root 0 Apr 2 19:16 core
-rw-r--r-- 1 root root 4096 Apr 3 16:40 dbroot
-r--r--r-- 1 root root 4096 Apr 3 16:40 dump_qos_lists
-rw-r--r-- 1 root root 4096 Apr 3 16:40 io_delay_msec
-rw-r--r-- 1 root root 4096 Apr 3 16:40 io_delay_per_io
drwxr-xr-x 3 root root 0 Apr 3 16:40 iscsi
-r--r--r-- 1 root root 4096 Apr 3 16:40 lio_event
drwxr-xr-x 3 root root 0 Apr 3 11:16 loopback
-rw-r--r-- 1 root root 4096 Apr 3 16:40 target_iops
-r--r--r-- 1 root root 4096 Apr 3 16:40 version
drwxr-xr-x 3 root root 0 Apr 3 11:16 vhost
/volume1/@docker/volumes/a9815094c6de74f31614188584e85f748e9b2cb3bcfadddcd4595904016272cb/_data:
total 0
root@mediasrv:~# ls -l /volume1/@docker/volumes/a9815094c6de74f31614188584e85f748e9b2cb3bcfadddcd4595904016272cb/_data /config/volume
/config/volume:
total 0
/volume1/@docker/volumes/a9815094c6de74f31614188584e85f748e9b2cb3bcfadddcd4595904016272cb/_data:
total 0
root@mediasrv:~# ls -l /volume1/@docker/volumes/297b9db18473e2611e13a97e5f78975d517764be209c0b9e8ff0b316a3ec6f1d/_data/temp
total 0[/code]
I also tried looking at the database
but I'm very weak in this topic
However, I will show you my research.
so you can understand that I can do this