Docker Community Forums

Share and learn in the Docker community.

Cifs mount failure


(Bandhu) #1

When trying to create cifs mount

ctstatyml28 is the container name which I am trying to create

Failure message

ERROR: for ctstatyml28 Cannot create container for service rcs3: VolumeDriver.Mount: exit status 32
compose.parallel.parallel_execute_iter: Failed: <Service: rcs3>
compose.parallel.feed_queue: Pending: set([])

[root@VM-001 Docker]# dmesg
[940340.905379] overlayfs: upper fs needs to support d_type. This is an invalid configuration.
[940340.916089] overlayfs: upper fs needs to support d_type. This is an invalid configuration.
[940341.216224] CIFS VFS: Error connecting to socket. Aborting operation.
[940341.217216] CIFS VFS: cifs_mount failed w/return code = -111

journalctl -a output

Oct 27 01:30:01 VM-001 CROND[38567]: (root) CMD (/usr/lib64/sa/sa1 1 1)
Oct 27 01:33:09 VM-001 kernel: overlayfs: upper fs needs to support d_type. This is an invalid configuration.
Oct 27 01:33:09 VM-001 kernel: overlayfs: upper fs needs to support d_type. This is an invalid configuration.
Oct 27 01:33:09 VM-001 kernel: CIFS VFS: Error connecting to socket. Aborting operation.
Oct 27 01:33:09 VM-001 kernel: CIFS VFS: cifs_mount failed w/return code = -111

Cifs mount point details

compose.cli.verbose_proxy.proxy_callable: docker inspect_volume <- (u’docker_doc10_data’)
compose.volume.initialize: Creating volume “docker_doc10_data” with cifs driver
compose.cli.verbose_proxy.proxy_callable: docker create_volume <- (u’docker_doc10_data’, ‘cifs’, {‘share’: ‘10.194.39.220/tmp/testing/data’}, labels={u’com.docker.compose.volume’: ‘doc10_data’, u’com.docker.compose.project’: u’docker’})
compose.cli.verbose_proxy.proxy_callable: docker create_volume -> {u’Driver’: u’cifs’,
u’Labels’: {u’com.docker.compose.project’: u’docker’,
u’com.docker.compose.volume’: u’doc10_data’},
u’Mountpoint’: u’/var/lib/docker/volumes/cifs/docker_doc10_data’,
u’Name’: u’docker_doc10_data’,
u’Options’: {u’share’: u’10.194.39.220/tmp/testing/data’},
u’Scope’: u’local’}

When I execute the same mount cifs command

[root@VM-001 Docker]# mount -t cifs -v -o user=root,password=password,uid=1004,gid=1005,iocharset=utf8,file_mode=0777,dir_mode=0777,guest,rw //10.194.39.220/tmp/testing/share /var/lib/docker/volumes/cifs/docker_doc10_share
mount.cifs kernel mount options: ip=10.194.39.220,unc=\10.194.39.220\tmp,iocharset=utf8,file_mode=0777,dir_mode=0777,uid=1004,gid=1005,user=root,prefixpath=testing/share,pass=********
Unable to find suitable address.

Receiving the same error message

[940846.034367] CIFS VFS: Error connecting to socket. Aborting operation.
[940846.036160] CIFS VFS: cifs_mount failed w/return code = -111