Jump to content

Docker on Proxmox with SMB Share

Misinthe

Hello everyone, this is my situation, I am using Proxmox for my VMs, I have a VM that runs Docker and all my containers, I also have TrueNAS Scale installed on a separate physical server. On the TrueNAS, I have a SMB share that contains all my media, what I want to achieve is, create a container that can use my already created SMB share on TrueNAS as download storage location. If anyone can help me out, I'll apreciate it!

Link to comment
Share on other sites

Link to post
Share on other sites

You can mount the smb share in docker. Google mount cifs with fstab for how to do it at boot.

 

Then setup docker to use the mount point of the smb share as a passthrough. That way the docker container can access the smb share that is mounted on the docker host.

Link to comment
Share on other sites

Link to post
Share on other sites

1 hour ago, Electronics Wizardy said:

You can mount the smb share in docker. Google mount cifs with fstab for how to do it at boot.

 

Then setup docker to use the mount point of the smb share as a passthrough. That way the docker container can access the smb share that is mounted on the docker host.

So I don't need to mount it to Proxmox as Storage before the Ubuntu/Docker VM can use it? I was reading that online and somehow I bricked my whole VM, luckly I do backups every night, so I didn't lose it lol.

Link to comment
Share on other sites

Link to post
Share on other sites

1 hour ago, Misinthe said:

So I don't need to mount it to Proxmox as Storage before the Ubuntu/Docker VM can use it? I was reading that online and somehow I bricked my whole VM, luckly I do backups every night, so I didn't lose it lol.

Nope. It doesn't matter whats mounted on the host, as the VM doesn't share any mount points with the host.

Link to comment
Share on other sites

Link to post
Share on other sites

18 hours ago, Electronics Wizardy said:

Nope. It doesn't matter whats mounted on the host, as the VM doesn't share any mount points with the host.

I keep getting various errors, I think I'm going to give up on this project for now, thank you for the help though!

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×