The first time I run the Docker container it works fine. If I restart the container, it keeps restarting forever with an error. The only fix is to remove the container and start again. That mean I can not restart my server because samba stops working.
Add user 'fake_user' with password 'fake_password' Added user fake_user.,
DONE,
smbd version 4.14.5 started.,
Copyright Andrew Tridgell and the Samba Team 1992-2021,
daemon_ready: daemon 'smbd' finished starting up and ready to serve connections,
addgroup: group 'fake_group' in use,
Add user 'fake_user' $addgroup: group 'fake_group' in use,
Add user 'fake_user' $addgroup: group 'fake_group' in use,
Add user 'fake_user' $addgroup: group 'fake_group' in use,