Docker-swarm: Unterschied zwischen den Versionen

Aus xinux.net
Zur Navigation springen Zur Suche springen
(4 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 1: Zeile 1:
*cardassia ~ # docker-machine create -d virtualbox local
+
=install=
 
+
*apt update
 
+
*apt upgrade
*cardassia ~ # eval "$(docker-machine env local)"
+
*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
*cardassia ~ #  docker-machine ls
+
*systemctl start docker
NAME    ACTIVE  DRIVER      STATE    URL                        SWARM
+
*systemctl enable docker
local  *       virtualbox  Running  tcp://192.168.99.100:2376
 
 
 
 
 
*cardassia ~ # docker run swarm create
 
<pre>
 
Unable to find image 'swarm:latest' locally
 
latest: Pulling from library/swarm
 
2bc79aec8ea0: Pull complete
 
dc2fb86a875a: Pull complete
 
435e648d0f23: Pull complete
 
e16042a92d05: Pull complete
 
045bd7b00b5b: Pull complete
 
3caea1253d76: Pull complete
 
2b4c55187a27: Pull complete
 
6b40fe7724bd: Pull complete
 
Digest: sha256:51a30269d3f3aaa04f744280e3c118aea032f6df85b49819aee29d379ac313b5
 
Status: Downloaded newer image for swarm:latest
 
036e2c984bfde4d5693995ffe0535f35
 
</pre>
 
  
 +
=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=
*http://docs.docker.com/swarm/install-w-machine/
+
*https://clouding.io/kb/en-us/articles/360010288160-Docker-Swarm-on-Ubuntu-18-04

Version vom 25. März 2020, 13:45 Uhr

install

change host file

/etc/hosts
10.50.66.21 xinux-node01
10.50.66.22 xinux-node02 
10.50.66.23 xinux-node03

links