Question

How to use mounted volume on the droplet?

Hi there!

I’ve mounted the volume volume_fra1_01 to my droplet and I have the folder /mnt/volume_fra1_01.

But how can I use this volume to store the MS SQL Server data there?

docker volume ps command shows that I don’t have any volume

The lines below in the docker-compose.yaml will create a new volume named sqldata

volumes:
    - sqldata:/var/opt/mssql

Thanks for your response!


Submit an answer


This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

KFSys
Site Moderator
Site Moderator badge
September 19, 2022
Accepted Answer

Hi @5151caa45a63-45f3-8ee8-c6f42f,

You should be able to see the Mounted volume using docker. How have you mounted the volume? Have you used the following article:

https://docs.digitalocean.com/products/volumes/how-to/mount/

You can try to add the volume to your fstab and reboot your Droplet according to the above docs.

Hi there,

Another thing that you could do is to attach the DigitalOcean Block Storage to the Docker container directly as described here:

https://www.digitalocean.com/community/questions/how-to-attach-digitalocean-block-storage-to-docker-container

Hope that this helps!

Best,

Bobby

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Become a contributor for community

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

DigitalOcean Documentation

Full documentation for every DigitalOcean product.

Resources for startups and SMBs

The Wave has everything you need to know about building a business, from raising funding to marketing your product.

Get our newsletter

Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.

New accounts only. By submitting your email you agree to our Privacy Policy

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.