By DigitalKrate
Hi DO Community,
I’m new to DO & creating docker swarms, just getting to grips with the DO API and noticed a large amount of information around using docker-machine using the older local docker-machine.exe.
I’m trying to create a new docker swarm but using “docker service create…” instead of docker-machine.
I have a token and can create using the docker-machine approach as per the following tutorial, but i am unable to create droplets in a similar fashion using my main Docker version on Windows 10 Pro using Powershell.
I believe the docker command should be something along the lines of:
docker service create \
--name swarm_0 \
--hostname swarm_0_master \
--replicas 3 \
--digitalocean-image centos-7-x64 \
--digitalocean-access-token $TOKEN
Any pointers appreciated.
Enviornment:
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!
Hello,
You can follow these step by step guide on how to create a cluster of Docker containers with Docker Swarm and DigitalOcean:
Hope that this helps! Regards, Bobby
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.