Comments (5)
I could not create a cluster with public adresses but it's working using private adresses.
Using the CLI and docker-machine for scw it's solid. Here is how I do it:
docker-machine create -d scaleway \
--scaleway-region="par1" \
--scaleway-image="3803a8a7" \
--scaleway-token="123123123" \
--scaleway-organization="123123123" \
--scaleway-commercial-type="VC1S" \
--swarm \
--scaleway-name="N01-PAR1" N01-PAR1
3803a8a7 is the docker image
It's good to know the second name is used by the docker-machine driver.
from docker-machine-driver-scaleway.
Actually, more I'm thinking about it ...
We don't need --swarm
as it makes more sense to go with the Docker Swarm Mode.
Create your nodes and then run this on your manager:
# scaleway (private address)
IP_N01=$(ifconfig eth0 | grep "inet addr" | cut -d ':' -f 2 | cut -d ' ' -f 1)
echo "On the manager run: docker swarm init --advertise-addr=$IP_N01"
from docker-machine-driver-scaleway.
@alexellis I don't think it's docker-machine's job to create a cluster.
from docker-machine-driver-scaleway.
The script above no longer seems to work; quite a few fails throughout:
sh start-swarm-cluster.sh
- docker-machine create -d scaleway --swarm --swarm-master --scaleway-name=swarm-manager --swarm-discovery=token://my-token swarm-manager
- docker-machine create -d scaleway --swarm --scaleway-name=swarm-node-1 --swarm-discovery=token://my-token swarm-node-1
- docker-machine create -d scaleway --swarm --scaleway-name=swarm-node-2 --swarm-discovery=token://my-token swarm-node-2
- docker-machine create -d scaleway --swarm --scaleway-name=swarm-node-3 --swarm-discovery=token://my-token swarm-node-3
Running pre-create checks...
Running pre-create checks...
Creating machine...
Creating machine...
(swarm-manager) Creating SSH key...
(swarm-node-1) Creating SSH key...
Running pre-create checks...
Creating machine...
(swarm-node-2) Creating SSH key...
Running pre-create checks...
Creating machine...
(swarm-node-3) Creating SSH key...
(swarm-node-2) Creating server...
(swarm-node-1) Creating server...
(swarm-node-3) Creating server...
(swarm-manager) Creating server...
Error creating machine: Error in driver during machine creation: {"message": "Internal error", "type": "server_error"}
Error creating machine: Error in driver during machine creation: {"message": "Internal error", "type": "server_error"}
(swarm-node-2) Starting server...
Waiting for machine to be running, this may take a few minutes...
(swarm-manager) Starting server...
Waiting for machine to be running, this may take a few minutes...
Detecting operating system of created instance...
Waiting for SSH to be available...
Detecting the provisioner...
Provisioning with ubuntu(systemd)...
Installing Docker...
Detecting operating system of created instance...
Waiting for SSH to be available...
Detecting the provisioner...
Provisioning with ubuntu(systemd)...
Installing Docker...
Copying certs to the local machine directory...
Copying certs to the remote machine...
Setting Docker configuration on the remote daemon...
Copying certs to the local machine directory...
Error creating machine: Error running provisioning: ssh command error:
command : sudo systemctl -f start docker
err : exit status 1
output : Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details.
Copying certs to the remote machine...
Setting Docker configuration on the remote daemon...
Error creating machine: Error running provisioning: ssh command error:
command : sudo systemctl -f start docker
err : exit status 1
output : Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details.
from docker-machine-driver-scaleway.
The docs are for pre docker engine 1.12. As of 1.12 docker swarm behaves differently and does not appear to require an external service like consul or etcd to manage distributed configurations.
from docker-machine-driver-scaleway.
Related Issues (20)
- START1-XS complains about disk size even though parameter is supplied HOT 12
- Error creating "Ubuntu Bionic ML" instance HOT 5
- Error removing host: server should be running HOT 1
- Driver v2 HOT 1
- Error running provisioning: Failed to obtain lock: Maximum number of retries (60) exceeded HOT 3
- When trying to run `brew tap scaleway/scaleway`: undefined method `cellar' HOT 1
- macos M1 support
- error provisioning machine HOT 18
- docker-machine rm hangs if server doesn't exist
- Default machine image does not exist HOT 3
- tag new version HOT 2
- change default bootscript? HOT 1
- availlable image names HOT 2
- Wrong commercial type HOT 6
- Cannot create new docker machine HOT 1
- Error creating instance, No such bootscript: docker HOT 4
- Error starting plugin binary HOT 1
- Should update brew release
- brew installs version 1.3 -> provisioning errors HOT 2
- Unable to remove a stopped machine HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-machine-driver-scaleway.