Ok I am starting to understand (i hope) what you are saying about the /var/sota/storage/docker-compose , and as usual understanding things better means there are even more follow-up questions…
I understand there are two steps: first, a sort of “sanity check” step to make sure the docker-compose.yml file even works, and second the more permanent “bundle the containers into the image” approach.
For step 1, (just trying to make sure the docker-compose.yml file is correct), I just:
- mkdir /var/sota/storage/docker-compose
- copy the “F1 -Torizon export docker-compose” output to a file there called docker-compose.yml
- When I reboot, the systemctl docker-compose.service will run this file and start my application.
But later, for step 2, when I see this is all working, I need to pre-provision the containers into the Easy Installer image. I have a ton of questions about this step, but I see I have more reading to do before I even bother you about it 
So, I am still on Step 1.
So far I have managed to:
- create the /var/sota/storage/docker-compose/ folder
- F1 export docker-compose file and copy it to this folder
# docker-compose.yml
services:
datahandler_arm32v7-debian-python3_bullseye_release_fb2145c3-20ed-43f9-b41d-1657ebce567c:
depends_on: []
devices: []
image: datahandler_arm32v7-debian-python3_bullseye_release_fb2145c3-20ed-43f9-b41d-1657ebce567c
ports:
- 8081:8080/tcp
- 8883:8883/tcp
volumes:
- /dev:/dev:rw
- /home/torizon/logs:/home/torizon/logs:rw
- /tmp:/tmp:rw
version: '2.4'
- reboot
- check ‘systemctl status docker-compose’, which reports:
docker-compose.service - Docker Compose service with docker compose
Loaded: loaded (/usr/lib/systemd/system/docker-compose.service; enabled; vendor preset: enabled)
Active: active (exited) since Thu 2022-09-01 13:52:03 UTC; 7min ago
Process: 850 ExecStart=/usr/bin/docker-compose -p torizon up -d --remove-orphans (code=exited, status=0/SUCCESS)
Process: 851 ExecStartPost=/usr/bin/rm -f /tmp/recovery-attempt.txt (code=exited, status=0/SUCCESS)
Main PID: 850 (code=exited, status=0/SUCCESS)
Sep 01 13:52:03 colibri-imx6-10866293 systemd[1]: Starting Docker Compose service with docker compose...
Sep 01 13:52:03 colibri-imx6-10866293 systemd[1]: Started Docker Compose service with docker compose.
Sep 01 13:52:09 colibri-imx6-10866293 docker-compose[850]: Creating network "torizon_default" with the default driver
Sep 01 13:52:11 colibri-imx6-10866293 docker-compose[850]: Creating torizon_devicehandler_arm32v7-debian-python3_bullseye_release_fb2145c3-20ed-43f9-b41d-1657ebce567c_1 ...
Sep 01 13:52:14 colibri-imx6-10866293 docker-compose[850]: Creating torizon_devicehandler_arm32v7-debian-python3_bullseye_release_fb2145c3-20ed-43f9-b41d-1657ebce567c_1 ... done
~
which seems to look okay,
I can see that my image is present
colibri-imx6-10866293:~/logs$ docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
emerablockenergybox_arm32v7-debian-no-ssh_bullseye_release_69ac5093-51e4-4f03-8827-ec9f9390dfe3 latest 56a12ba56d48 About an hour ago 95.3MB
datahandler_arm32v7-debian-python3_bullseye_release_fb2145c3-20ed-43f9-b41d-1657ebce567c latest 268df50dc558 2 hours ago 118MB
devicehandler_arm32v7-debian-python3_bullseye_debug_fb2145c3-20ed-43f9-b41d-1657ebce567c latest db7e1b6a6941 7 days ago 149MB
devicehandler_arm32v7-debian-python3_bullseye_release_fb2145c3-20ed-43f9-b41d-1657ebce567c latest b237b6a3160e 7 days ago 120MB
leighjboyd/emera1 latest e90dfb901f0b 2 weeks ago 97.5MB
emerablockenergybox_arm32v7-debian-no-ssh_bullseye_debug_69ac5093-51e4-4f03-8827-ec9f9390dfe3 latest 33f3d7f957f9 3 weeks ago 99.2MB
torizon/weston 2 829f5eb1882b 3 months ago 309MB
but when I check ‘docker ps’, nothing is running.
But if I export the docker run command:
docker run --volume /dev:/dev --volume /home/torizon/logs:/home/torizon/logs --volume /tmp:/tmp --publish 8081:8080/tcp --publish 8883:8883/tcp datahandler_arm32v7-debian-python3_bullseye_release_fb2145c3-20ed-43f9-b41d-1657ebce567c
The application runs fine.
Any ideas?