Hi, I am new to docker and in learning phase. I want to copy the yml file from my system to droplets and run that file on the droplets node so that i can test some swarm functionality.
How to achieve it and what is the best practice to do it .
Thanks.
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!
Hi @skriss03,
I’ll recommend using either rsync or scp via your terminal to copy the file over. It’s simple and it takes less than 10 seconds.
The scp command syntax take the following form:
scp [OPTION] [user@]SRC_HOST:]file1 [user@]DEST_HOST:]file2
Same goes for the Rsync command, same syntax just different options. For beginners, I’ll recommend starting off with SCP.
Regards, KFSys
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
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
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.