Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Persisted configuration - erased #14

Open
frasou opened this issue Aug 15, 2023 · 0 comments
Open

Persisted configuration - erased #14

frasou opened this issue Aug 15, 2023 · 0 comments

Comments

@frasou
Copy link

frasou commented Aug 15, 2023

I try setup new container with data:/data volume, but configuration changes are probably deleted by backupConfig procedure in init.sh when container receives SIGTERM.

cd /root/docker/samba-addc/; docker-compose up -d

cd /docker/volumes/samba-addc_data/_data/var/lib/samba/; mkdir profiles; chown root:users profiles; chmod 1760 profiles

ls -ld profiles/
drwxrw---T 1 root users 0 Aug 15 17:51 profiles/

then:
cd /root/docker/samba-addc/; docker-compose down
ls -ld /docker/volumes/samba-addc_data/_data/var/lib/samba/profiles/
ls: cannot access '/docker/volumes/samba-addc_data/_data/var/lib/samba/profiles/': No such file or directory

docker-compose.yml:
version: '3'

volumes:
data:

services:
samba:
image: burnbabyburn/docker-samba-dc:latest
container_name: samba
volumes:
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
- data:/data
# - data:/var/lib/samba
# - config:/etc/samba/external
# - gpo:/gpo
environment:
- DOMAIN=VRBA.LAN
- DOMAIN_PASS=123Qwer
- DOMAIN_PWD_COMPLEXITY=off
- ENABLE_DNSFORWARDER=192.168.100.254
- HOSTIP=192.168.100.252
- ENABLE_DYNAMIC_PORTRANGE=49152-49172
- DOMAIN_NETBIOS=VRBA
- NTPSERVERLIST=tak.cesnet.cz 0.cz.pool.ntp.org 1.cz.pool.ntp.org 2.cz.pool.ntp.org
ports:
- 192.168.100.252:53:53
- 192.168.100.252:53:53/udp
- 192.168.100.252:88:88
- 192.168.100.252:88:88/udp
- 192.168.100.252:123:123
- 192.168.100.252:123:123/udp
- 192.168.100.252:135:135
- 192.168.100.252:137-138:137-138/udp
- 192.168.100.252:139:139
- 192.168.100.252:389:389
- 192.168.100.252:389:389/udp
- 192.168.100.252:445:445
- 192.168.100.252:464:464
- 192.168.100.252:464:464/udp
- 192.168.100.252:636:636
- 192.168.100.252:1024-1044:1024-1044
- 192.168.100.252:3268-3269:3268-3269
- 192.168.100.252:49152-49172:49152-49172
dns_search:
- vrba.lan
dns:
- 127.0.0.1
extra_hosts:
- dc1.vrba.lan:192.168.100.252
hostname: dc1
cap_add:
- NET_ADMIN
- SYS_NICE
- SYS_TIME
# devices:
# - /dev/net/tun
privileged: true
restart: always

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant