How to Store Docker Data on an External Storage Device here: SSD

Hello everyone,

We would like to move the docker directory to an SSD.
There is a guide that doesn’t work for me. See here

I partitioned a 256 GB SSD into 2 parts and named the first partition ‘docker’.

It seems as if there is now an automation that mounts the docker partition to /media/docker.

Am I right?

And if, yes … how does it works?

my tdx-info:

Software summary
------------------------------------------------------------
Bootloader:               U-Boot
Kernel version:           5.15.148-6.6.1+git.23a8e831749d #1-TorizonCore SMP PREEMPT Thu Feb 29 20:25:21 UTC 2024
Kernel command line:      pci=nomsi root=LABEL=otaroot rootfstype=ext4 quiet logo.nologo vt.global_cursor_default=0 plymouth.ignore-serial-consoles splash fbcon=map:3 ostree=/ostree/boot.0/torizon/0215ecb778c505465daba1f372ede65642cfa6fbf3c0c8acda846b8236cd0630/0
Distro name:              NAME="TorizonCore"
Distro version:           VERSION_ID=6.6.1-build.12
Distro variant:           VARIANT="Docker"
Hostname:                 apalis-imx8-07278333
------------------------------------------------------------

Hardware info
------------------------------------------------------------
HW model:                 Toradex Apalis iMX8QM V1.1 on Apalis Ixora V1.2 Carrier Board
Toradex version:          0037 V1.1E
Serial number:            07278333
Processor arch:           aarch64
------------------------------------------------------------

Best
Gerald

Greetings @gerko,

Just want to clarify to make sure I understand your current situation.

It seems as if there is now an automation that mounts the docker partition to /media/docker.

Are you saying that your SSD was auto-mounted correctly to the device filesystem. Or did it not? The correct behavior is that removable media is automatically mounted in Torizon OS under /media somewhere. This is assuming Torizon OS has support for the type of device you are attaching and support for the filesystem type present on that device.

And if, yes … how does it works?

We make use of udisks2 to manage the detection and automatic mounting of removable media in Torizon OS.

Best Regards,
Jeremias

That explains everything!
So I don’t have to edit /etc/fstab.

Thank you!

Glad I could help clarify.