Skip to content

Instantly share code, notes, and snippets.

@alexishida
Last active February 22, 2018 13:52
Show Gist options
  • Select an option

  • Save alexishida/bf2ff24031f7d4e460e55928657ed35e to your computer and use it in GitHub Desktop.

Select an option

Save alexishida/bf2ff24031f7d4e460e55928657ed35e to your computer and use it in GitHub Desktop.
Comandos do rancher
docker stop rancher-server
docker cp rancher-server:/var/lib/mysql /storage/rancher-server
sudo chown -R 102:105 /storage/rancher-server/mysql
docker pull rancher/server:latest
docker run -d -v /storage/rancher-server/mysql:/var/lib/mysql -v /etc/localtime:/etc/localtime:ro -p 8080:8080 --restart=always --name rancher-server-v1 rancher/server:latest
# Mantendo a versão do docker
sudo apt-mark hold docker-ce
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment