Skip to content

Instantly share code, notes, and snippets.

@kolosek
Last active May 19, 2023 16:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kolosek/d5bd6298bf7c1a0992b03a4206808419 to your computer and use it in GitHub Desktop.
Save kolosek/d5bd6298bf7c1a0992b03a4206808419 to your computer and use it in GitHub Desktop.
#!/bin/sh
set -e
command_exists() {
command -v "$@" > /dev/null 2>&1
}
if command_exists docker; then
echo "Docker already installed"
else
curl -sSL https://get.docker.com | sh
fi
docker swarm leave --force 1> /dev/null 2> /dev/null || true
docker pull kolosek/easypanel:latest
#Removing Traefik service
#docker service ls
#docker service rm traefik
#Pull kolosek/ngnix-proxy-manager
docker run --rm -i \
-v /etc/easypanel:/etc/easypanel \
-v /var/run/docker.sock:/var/run/docker.sock:ro \
kolosek/easypanel setup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment