Netatalk running in docker for time machine backups.
docker pull arve0/timemachine docker run -e "PASSWORD=asdf" -v /host/mnt/backup:/backup -p 548:548 --net=host -d arve0/timemachine
Connect with timemachine:asdf. If environment variable
PASSWORD is not set, timemachine is the default password.
notes on bonjour/avahi/zeroconf
Network discovery) only works if afp daemon is on same network as client. Therefore
--net=host is required if you would like the disk to show in Finder. If you don't need this, you can remove
--net=host and connect in Finder with
--net=host doesn't work with ubuntu trusty 14.04: https://github.com/docker/docker/issues/5899
For CentOS 7:
If you receive "You do not have the necessary read, write and append privileges on the selected network backup disk" from the time machine client, your will need to verify the permissions on the backup directory that is created when the container is first run.
I had to stop the container, modify the permission, and restart the container.