I want to run docker in docker. I do it in the image of golang:1.10.3 . I do it with pens.

 > apt-get update > apt-get upgrade > apt-get install docker > docker 

I receive the message:

bash: docker: command not found

No errors fell out. Why is this happening?

    1 answer 1

    This happens because in the ubuntu repository the docker package is a GUI application.

    You can install the docker service itself as follows:

     curl -sSL https://get.docker.com/ | sh 

    // ss https://stackoverflow.com/a/30379382/4762530

    For this purpose, it is better to use the official docker dind image (docker in docker) https://hub.docker.com/_/docker

    Remember to run this image with the appropriate privileges.

    • Have you tried it yourself? - hedgehogues
    • Yes, I tried. What is the question? - Sergey Parfenov