How Can I Use SFTP Storage with Docker Swarm?

0
6
Asked By SillyGiraffe92 On

Hi everyone! I recently discovered how to mount my NFS directly to a container, and it's been working great. I was wondering if I can achieve something similar with SFTP. Specifically, I want to mount an SFTP storage to my Docker Swarm service. Any insights on how to do this would be appreciated!

2 Answers

Answered By TechSavvyFox34 On

Remember, SFTP isn’t typically something you 'mount' in the usual sense. It’s more about transferring files when you need them. In Docker Swarm, you attach storage directly to the container rather than the service itself.

Answered By HelpfulHedgehog10 On

There are Docker storage plugins available that support SSH/SFTP, but it's usually easier to manage by mounting on the host. Check out Docker’s documentation for more info on creating volumes using third-party drivers.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.