Arquivo da tag: Docker

Unable to start Docker Service in Ubuntu 16.04

https://stackoverflow.com/questions/37227349/unable-to-start-docker-service-in-ubuntu-16-04?answertab=active#tab-top

So here’s a permanent fix that works for systemd (Ubuntu 15.04 and higher):

  1. create a new file /etc/systemd/system/docker.service.d/overlay.conf with the following content:
[Service]
ExecStart=
ExecStart=/usr/bin/docker daemon -H fd:// -s overlay

2. flush changes by executing:

sudo systemctl daemon-reload

3. verify that the configuration has been loaded:

systemctl show --property=ExecStart docker

4. restart docker:

sudo systemctl restart docker

Share and Enjoy !

0Shares
0 0 0

Minibube in mac

Caso não tenha o curl instalado, digitar o seguinte comando no terminal:

brew install curl

Na sequência, digitar no terminal:

Abrir o terminal e digitar o seguinte comando:

etes-release/release/`curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt`/bin/darwin/amd64/kubectl

Na sequência, devemos mudar a permissão para executável:

chmod +x ./kubectl

Por fim, devemos mover o kubectl para as variáveis de ambiente:

sudo mv ./kubectl /usr/local/bin/kubectl

Rodando:

# Start
minikube start

# Top
minikube stop

# Lista os pods em execução
kubectl get pods --server-print=false

# Deleta pod
minikube delete pod <ID>

# Exibe a interface web
minikube dashboard

# Lista o IP dos pods
minikube service servico-aplicacao --url

# Escalando POD em 3 replicas.
kubectl scale deployment aplicacao-deployment --replicas=3

Share and Enjoy !

0Shares
0 0 0