Docker-swarm: Unterschied zwischen den Versionen

Aus xinux.net
Zur Navigation springen Zur Suche springen
Zeile 1: Zeile 1:
*cardassia ~ # docker-machine create -d virtualbox local
+
=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
 +
*systemctl start docker
 +
*systemctl enable docker
  
  
*cardassia ~ # eval "$(docker-machine env local)"
 
  
 
 
*cardassia ~ #  docker-machine ls
 
NAME    ACTIVE  DRIVER      STATE    URL                        SWARM
 
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>
 
  
  
 
=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:40 Uhr

install



links