Docker-swarm: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Thomas (Diskussion | Beiträge) |
|||
(4 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
Zeile 1: | Zeile 1: | ||
− | * | + | =install= |
− | + | *apt update | |
− | + | *apt upgrade | |
− | * | + | *curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - |
− | + | *add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | |
− | + | *apt update | |
− | + | *apt-get install -y docker-ce docker-compose | |
− | * | + | *systemctl start docker |
− | + | *systemctl enable docker | |
− | |||
− | |||
− | |||
− | * | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
+ | =change host file= | ||
+ | ;/etc/hosts | ||
+ | 10.50.66.21 xinux-node01 | ||
+ | 10.50.66.22 xinux-node02 | ||
+ | 10.50.66.23 xinux-node03 | ||
=links= | =links= | ||
− | * | + | *https://clouding.io/kb/en-us/articles/360010288160-Docker-Swarm-on-Ubuntu-18-04 |
Version vom 25. März 2020, 13:45 Uhr
install
- apt update
- apt upgrade
- curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
- add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
- apt update
- apt-get install -y docker-ce docker-compose
- systemctl start docker
- systemctl enable docker
change host file
- /etc/hosts
10.50.66.21 xinux-node01 10.50.66.22 xinux-node02 10.50.66.23 xinux-node03