Any way to start a container in privileged mode?

We have an ETL worker container that needs to mount external filesystems using sshfs. We can’t easily change the process that requires this to be a filesystem. Is there any way to specify to run a container in privileged mode via Rancher? We can’t use an sshfs volume driver as this container will attach and detach from multiple file stores.

Yes I know that we should use a new instance for each execution then we can use a volume driver. I also know that using a filesystem isn’t ideal but the application we’re using is essentially a desktop application and can’t handle SFTP filesystems directly

Yes, in the Security/Host tab of the container definition (or just privileged: true in compose).

1 Like