odarriba/docker-timemachine

AFP_LOGIN and AFP_PASSWORD not quite working?

jayjanssen opened this issue · 1 comments

Just updated to b93ac2782ded (have been stable for forever) and my Macs couldn't connect to the AFP volume. I tried a few restart/rebuilds of the image, same issue.

My docker-compose environment looks like this (and has looked like this for a year+):

    environment:
     - AFP_LOGIN=tm
     - AFP_PASSWORD=some_passsword
     - AFP_NAME=TimeMachine
     - AFP_SIZE_LIMIT=700000

I was able to fix my issue by running add-account:

$ docker exec 5eab255ef4ee add-account tm some_password TimeMachine /timemachine
chpasswd: password for 'tm' changed

After that I am able to connect via AFP normally. So, it seems like the default single user setup using AFP envs might be broken in some way in a recent change.

Found my issue, needed to set PUID and PGID for the AFP* variables to work right.