Created
July 29, 2018 16:57
-
-
Save madbean/291c43630b9adce3275f0116987d90f5 to your computer and use it in GitHub Desktop.
scaleway docker - rancher/agent
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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