Skip to content
This repository has been archived by the owner on May 30, 2018. It is now read-only.

Problem starting swarm agent #7

Open
StefanScherer opened this issue Feb 14, 2016 · 1 comment
Open

Problem starting swarm agent #7

StefanScherer opened this issue Feb 14, 2016 · 1 comment

Comments

@StefanScherer
Copy link
Member

I tried to create a swarm with the XU4 and v0.1.0 of the SD card image, but I get an error starting the container memory.swappiness: invalid argument:

$ docker-machine create -d generic --swarm --swarm-discovery token://$TOKEN --swarm-image hypriot/rpi-swarm:latest --generic-ip-address 192.168.1.205 --generic-ssh-user pirate xu4 
Running pre-create checks...
Creating machine...
(xu4) No SSH key specified. Connecting to this machine now and in the future will require the ssh agent to contain the appropriate key.
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 debian...
Copying certs to the local machine directory...
Copying certs to the remote machine...
Setting Docker configuration on the remote daemon...
Configuring swarm...
Error creating machine: Error running provisioning: Error while starting container: 500 Internal Server Error: Cannot start container d62d5939d5975c4f3b08840fb550895a9e76b8d516b4052a627be48021aa0936: [9] System error: write /sys/fs/cgroup/memory/docker/d62d5939d5975c4f3b08840fb550895a9e76b8d516b4052a627be48021aa0936/memory.swappiness: invalid argument
@StefanScherer
Copy link
Member Author

The swarm master on a RPi2 with SD card image v0.2.5 was created with:

docker-machine create -d generic --swarm --swarm-master --swarm-discovery token://$TOKEN --swarm-image hypriot/rpi-swarm:latest --generic-ip-address 192.168.1.203 --generic-ssh-user pirate --engine-storage-driver overlay rpi2-5
docker-machine create -d generic --swarm --swarm-discovery token://$TOKEN --swarm-image hypriot/rpi-swarm:latest --generic-ip-address 192.168.1.206 --generic-ssh-user pirate --engine-storage-driver overlay rpi2-6
$ docker-machine ls
NAME                       ACTIVE      DRIVER    STATE     URL                          SWARM             DOCKER    ERRORS
rpi2-5                     * (swarm)   generic   Running   tcp://192.168.1.203:2376     rpi2-5 (master)   v1.10.1   
rpi2-6                     -           generic   Running   tcp://192.168.1.206:2376     rpi2-5            v1.10.1   
xu4                        -           generic   Running   tcp://192.168.1.205:2376     rpi2-5            v1.10.1   

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant