netatalk - (servercontainers/netatalk) (+ optional zeroconf) on alpine [x86 + arm]
6.6K
netatalk on alpine
servercontainers/samba configSo for TimeMachine I can recommend using this container. If you want simple filesharing I'd recommend samba, webdav or other stuff.
Apple announced to deprecate afp and move to samba.
NETATALK_GLOBAL_CONFIG_someuniquevalue
afp.confkey = valueACCOUNT_username
$.$ or it will be detected as hash)$6$TBPgQoB2kmijMzsi$xdmXI1Z2zIwtuKbLDKjLLvMdWvqRf2cf6aryLJB3pVrIqaEWNH8VOglLIJMYMz6mBSJ5WsLDa5T7i86gmnPAc. (password: password) use normal linux password hash (from /etc/shadow etc.)valid users = alice; invalid users = bob;NETATALK_VOLUME_CONFIG_myconfigname
time machine = yes is supportedMODEL
TimeCapsuleAVAHI_NAME
your shares
/shares and configure them using the path property.netatalk-volume-uuid gets created and should not be removed - especially on timemachine volumes it stores the uuid of the volume/external/avahi
/etc/avahi/services/ to this spotafp.service for you - it will be overwritten!You can't proxy the zeroconf inside the container to the outside, since this would need routing and forwarding to your internal docker0 interface from outside.
So you need to use the network=host mode to enable zeroconf from within the container
You can just expose the needed Port 548 to the docker hosts port and install avahi. After that just add a new service which fits to your config.
afp.conf
[Global]
zeroconf = yes
log file = /dev/stdout
[Time Capsule]
path = /timecapsule
time machine = yes
/etc/avahi/services/afdp.service
<?xml version="1.0" standalone='no'?><!--*-nxml-*-->
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
<service-group>
<name replace-wildcards="yes">%h</name>
<service>
<type>_afpovertcp._tcp</type>
<port>548</port>
</service>
<service>
<type>_adisk._tcp</type>
<port>9</port>
<txt-record>sys=waMa=0,adVF=0x100</txt-record>
<txt-record>dk0=adVF=0xa1,adVN=Time Capsule</txt-record>
</service>
<service>
<type>_device-info._tcp</type>
<port>0</port>
<txt-record>model=RackMac</txt-record>
</service>
</service-group>
Content type
Image
Digest
sha256:bf2d44c47…
Size
8.3 MB
Last updated
2 months ago
docker pull servercontainers/netatalk