This commit is contained in:
SKP
2020-01-21 15:56:45 +01:00
committed by kexkey
parent 357f0ecd5e
commit d5ddbbd6fa

4
dist/setup.sh vendored
View File

@@ -551,8 +551,8 @@ install_docker() {
# we only support swarm in single host mode, so all labels needed to spawn containers in the swarm
# are given to the host setup is run on. Setup must be run on any manager, if swarm mode is enabled
# and a swarm was already initialised
if [[ $(docker node inspect ${localnodeid} --format '{{ index .Spec.Labels "io.cyphernode" }}') == "true" ]]; then
step "  [32madd docker node label: io.cyphernode"
if [[ $(docker node inspect ${localnodeid} --format '{{ index .Spec.Labels "io.cyphernode" }}') != "true" ]]; then
step " add docker node label io.cyphernode"
try docker node update --label-add io.cyphernode=true ${localnodeid} > /dev/null 2>&1
next
fi