Skip to content

Instantly share code, notes, and snippets.

@Wicaeed
Created June 4, 2019 21:12
Show Gist options
  • Select an option

  • Save Wicaeed/68ae01f237ea21507e3630b83e6ded90 to your computer and use it in GitHub Desktop.

Select an option

Save Wicaeed/68ae01f237ea21507e3630b83e6ded90 to your computer and use it in GitHub Desktop.
fucking docker
alias calicoctl="\
docker run -i --rm \
--pid host \
--net host \
-e constraint:ostype==linux \
-e ETCD_ENDPOINTS=127.0.0.1:12378 \
-e ETCD_KEY_FILE=/ucp-node-certs/key.pem \
-e ETCD_CA_CERT_FILE=/ucp-node-certs/ca.pem \
-e ETCD_CERT_FILE=/ucp-node-certs/cert.pem \
-v /var/run/calico:/var/run/calico \
-v ucp-node-certs:/ucp-node-certs:ro \
docker/ucp-dsinfo:${UCP_VERSION} \
calicoctl \
"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment