# Mounting CIFS/SMB share in Linux container

**URL:** <https://forums.suse.com/t/mounting-cifs-smb-share-in-linux-container/13825>\
**Category:** SUSE Rancher Prime\
**Created:** [April 1, 2019, 9:54am UTC](https://forums.suse.com/t/mounting-cifs-smb-share-in-linux-container/13825 "2019-04-01T09:54:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vitrix](https://avatars.discourse-cdn.com/v4/letter/v/8491ac/32.png) [@Vitrix](https://forums.suse.com/u/Vitrix)\
**Post date:** [April 1, 2019, 9:54am UTC](https://forums.suse.com/t/mounting-cifs-smb-share-in-linux-container/13825/1 "2019-04-01T09:54:53Z")

</div>

Hi everyone!

I need some advice here… We want to run a pod as a kubernetes job that fetches a file (wget) externally and copies that file on a local SMB/CIFS share.  
I noticed ms has created something similar: an smb driver via flexvolume

> **[kubernetes-volume-drivers/flexvolume/smb at master ·...](https://github.com/Azure/kubernetes-volume-drivers/tree/master/flexvolume/smb)**
>
> master/flexvolume/smb

However, you need to set some specific variables in the kubelet:

> <https://github.com/Azure/kubernetes-volume-drivers/blob/master/flexvolume/README.md#config-kubelet-service-to-enable-flexvolume-driver>

Is that doable or are there better methods?

---

<div class="post-metadata">

**Author:** ![anthony](https://avatars.discourse-cdn.com/v4/letter/a/49beb7/32.png) [@anthony](https://forums.suse.com/u/anthony)\
**Post date:** [April 16, 2019, 9:32pm UTC](https://forums.suse.com/t/mounting-cifs-smb-share-in-linux-container/13825/2 "2019-04-16T21:32:25Z")

</div>

That looks like an interesting subject to look into, however for the specific pretty basic case that you’ve described, I’d go with the ‘smbclient’ utility which is a totally userland tool that won’t require any k8s mods nor privilege escalation.

[https://www.samba.org/samba/docs/current/man-html/smbclient.1.html](https://www.samba.org/samba/docs/current/man-html/smbclient.1.html)
