@j0nnymoe thanks for the detailed explanation. I can accept that.
Just for the record, I like to pass in the users and keep it in a config file like this:
samba:
image: dperson/samba
container_name: samba
command: -u "blomerus;${ADMIN_PASSWORD}" -s "media;/share;yes;no;no;blomerus" -s "public;/public;yes;no;yes"
volumes:
- ${DATA_DIR}:/share
- ${DATA_DIR}/public:/public
environment:
- TZ=Africa/Johannesburg
- WORKGROUP=blomerus
- USERID=1000
- GROUPID=1000
ports:
- 139:139
- 445:445
restart: unless-stopped
This is much more portable from server to server than having to create users on each server, and it is under version control so I only had to know how to set it up at one point in time.
Maybe I just needed the correct tag to get the image to start on the Pi. Or maybe my error was unrelated to being on a different platform. I will give it another try.