image that allow to mount a cifs volume and provide via a volume data content to the host
3.1K
repository that allow to build docker image a cifs client. This image allow to mount a cifs volume inside a container and provide the data in a volume data.
To use this client, you need to pull the image
docker pull cohorte/cifs_client:latest
create the container with specify volume data to access to synchronized cifs file in the host and all environment properties that allow to mount the volume
docker run -d \
--name=cifs_client \
--cap-add SYS_ADMIN \
--cap-add DAC_READ_SEARCH \
--privileged \
--log-opt mode=non-blocking \
--log-opt max-buffer-size=4m \
--log-opt max-size=10m \
--log-opt max-file=40 \
-e USER=user \
-e PASS=pass \
-e SERVER=domain.name \
-e SHARE_PATH=smb_share \
-e VOLUME_TARGET=volume_inside_container \
-v /var/volumes/subdomain/cifs_client/mount:volume_inside_container \
cifs_client:1.0.0
In docker we can't share a volume data that bind directly the cifs mount volume. To allow to see and manipulate file in volume data, a synchronization mechanism using inotify-tools is implement in order to synchronized deletion, copy, create and modify files and directories.
Content type
Image
Digest
sha256:050deba1e…
Size
85.1 MB
Last updated
about 4 years ago
docker pull cohorte/cifs_client