Hello!
I shared a Docker directory via samba on the Linux host machine, but can only connect as read-only.
I know I can setup samba in Docker, but we have many samba shares on the Linux host and I thought sharing the Docker directory would be easier than setting up samba in Docker.
I have included my Linux host smb.conf entry below, and my workstation fstab entry.
Is this even possible or should I setup samba in Docker as well? Could this be an issue with the uid/gui?
Thanks!!
Host machine smb.conf entry:
[WWW]
comment = files
path = /opt/webserver_swag/config/www
read only = No
guest ok = Yes
create mask = 0777
directory mask = 0777
My workstation fstab entry:
//10.1.1.90/www /mnt/www cifs _netdev,guest,nofail,noatime,uid=1000,gid=1000 0 0
Docker-compose.yaml:
version: “2”
services:
composer:
restart: ‘no’
container_name: composer
image: “composer”
command: install --no-suggest
volumes:
- /opt/webserver_swag/config/www/admin/php:/app
mariadb:
image: linuxserver/mariadb
container_name: mariadb
environment:
- PUID=1000
- PGID=1000
- MYSQL_ROOT_PASSWORD=test
- TZ=America/New_York
- MYSQL_DATABASE=test
- MYSQL_USER=test
- MYSQL_PASSWORD=test
volumes:
- /opt/webserver_swag/config/mariadb:/config
ports:
- 3306:3306
restart: unless-stopped
swag:
image: linuxserver/swag
container_name: swag
cap_add:
- NET_ADMIN
environment:
- PUID=1000
- PGID=1000
- TZ=America/New_York
- URL=example.com
- SUBDOMAINS=www
- VALIDATION=http
volumes:
- /opt/webserver_swag/config:/config
ports:
- 443:443
- 80:80 #optional
restart: unless-stopped