ctrl+alt+t
e verifique se você possui o wget com o comando which wget
, caso não o possua, instale usando o comando sudo apt-get install wget
.
Instalando o Docker
Ainda no terminal digitewget -qO- https://get.docker.com/ | sh
. Após o script ser executado o docker já estará instalado. Para executá-lo sem a necessidade de digitar sudo docker
, digite este comando: sudo usermod -aG docker $USER
para adiconar seu usuário ao grupo docker .No tutoarial oficial (http://docs.docker.com/linux/step_one/) eles informam que para testar o docker após esse processo basta executar:
docker run hello-world
e você verá algo desse tipo:
$ docker run hello-world Unable to find image 'hello-world:latest' locally latest: Pulling from library/hello-world 535020c3e8ad: Pull complete af340544ed62: Pull complete Digest: sha256:a68868bfe696c00866942e8f5ca39e3e31b79c1e50feaee4ce5e28df2f051d5c Status: Downloaded newer image for hello-world:latest Hello from Docker. This message shows that your installation appears to be working correctly. To generate this message, Docker took the following steps: 1. The Docker client contacted the Docker daemon. 2. The Docker daemon pulled the "hello-world" image from the Docker Hub. 3. The Docker daemon created a new container from that image which runs the executable that produces the output you are currently reading. 4. The Docker daemon streamed that output to the Docker client, which sent it to your terminal. To try something more ambitious, you can run an Ubuntu container with: $ docker run -it ubuntu bash Share images, automate workflows, and more with a free Docker Hub account: https://hub.docker.com For more examples and ideas, visit: https://docs.docker.com/userguide/ To try something more ambitious, you can run an Ubuntu container with: $ docker run -it ubuntu bash For more examples and ideas, visit: https://docs.docker.com/userguide/
No meu caso isso não funcionou, para ajustar tive que editar o arquivo
/etc/default/docker
, caso ocorra o mesmo problema com você, digite no terminal sudo nano /etc/default/docker
e você verá algo desse tipo:
# Docker Upstart and SysVinit configuration file # Customize location of Docker binary (especially for development testing). #DOCKER="/usr/local/bin/docker" # Use DOCKER_OPTS to modify the daemon startup options. #DOCKER_OPTS="--dns 8.8.8.8 --dns 8.8.4.4" # If you need Docker to use an HTTP proxy, it can also be specified here. #export http_proxy="http://127.0.0.1:3128/" # This is also a handy place to tweak where Docker's temporary files go. #export TMPDIR="/mnt/bigdrive/docker-tmp"descomente a linha
#DOCKER_OPTS="--dns 8.8.8.8 --dns 8.8.4.4"
e adicionae a linha DOCKER_HOST="/var/run/docker.sock"
e seu seu arquivo deve fica assim:
# Docker Upstart and SysVinit configuration file # Customize location of Docker binary (especially for development testing). #DOCKER="/usr/local/bin/docker" # Use DOCKER_OPTS to modify the daemon startup options. DOCKER_OPTS="--dns 8.8.8.8 --dns 8.8.4.4" # If you need Docker to use an HTTP proxy, it can also be specified here. #export http_proxy="http://127.0.0.1:3128/" # This is also a handy place to tweak where Docker's temporary files go. #export TMPDIR="/mnt/bigdrive/docker-tmp" DOCKER_HOST="/var/run/docker.sock"Aperte
ctrl+x
para salvar o arquivo e digite no terminal sudo service docker restart
para reiniciar o serviço do docker. Agora teste docker run hello-world
.
É isso aí pessoal! Muito obrigado e até a pŕoxima! ;)