Created
January 24, 2018 08:54
-
-
Save Basster/6e4c5d529d2dea1d002dc7f35398d4a2 to your computer and use it in GitHub Desktop.
Running Cockpit Kubernetes Edition as Docker Container
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# usage: cockpit.sh start|stop | |
if [ "$1" = "start" ]; then | |
docker run -p 9090:9090 -e KUBERNETES_SERVICE_HOST=<kubernetes-cluster-ip> -e KUBERNETES_INSECURE=true -d cockpit/kubernetes | |
fi | |
if [ "$1" = "stop" ]; then | |
container=$(docker ps | grep cockpit/kubernetes | awk '{print $1}') | |
docker stop "$container" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
how to login, credentials not working