Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Wizyma/54582365ecc037cb868b18832d63d6b3 to your computer and use it in GitHub Desktop.
Save Wizyma/54582365ecc037cb868b18832d63d6b3 to your computer and use it in GitHub Desktop.
scaleway docker - rancher/agent
Info
Scaleway est livré actuellement avec docker-engine 1.12.2
Rancher lui a besoin de version précise docker-engine
http://docs.rancher.com/rancher/v1.5/en/hosts/
update rancher-engine
enter your pass phrase used with your ssh key generated on your laptop.
ssh root@your-server-ip
utput version should be 1.12.2
docker -v
remove docker 1.12.2 and install docker v17.03
logout and login
#uninstall
sudo apt-get purge docker-engine
sudo apt-get autoremove --purge docker-engine
rm -rf /var/lib/docker # This deletes all images, containers, and volumes
#install
curl https://releases.rancher.com/install-docker/17.03.sh | sh
exit
ssh root@your-server-ip
should be 17.03
docker -v
/!\ dont close the terminal.
Open port on your server with scaleway interface
go on security, rules then default rules.
open the UDP port 500 and 4500
udp in accept 500
udp in accept 4500
start an agent on the server
Go to rancher server,
click on "infrastructure" then "add host" tab and "add host" button.
select custom
add label
key : agent
value : service-app-1
enter the ip without http:// or anithing else.
copy the generated code.
go to the ssh and past the code, Enter !
the server will auto detect the host and show him in the infra -> host view
it take a few minute tu be fully up.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment