Skip to main content
Add a link to explain the dangers.
Source Link
Stephen Kitt
  • 480.9k
  • 59
  • 1.2k
  • 1.4k

Mounting /var/run/docker.sock inside the container is the usual approach for this, as long as you’re comfortable exposing your host’s Docker daemon to the containerexposing your host’s Docker daemon to the container. For this to work, you also need to ensure the Docker client binary (docker) is available inside the container; in your case it isn’t, you need to add it to the image.

Mounting /var/run/docker.sock inside the container is the usual approach for this, as long as you’re comfortable exposing your host’s Docker daemon to the container. For this to work, you also need to ensure the Docker client binary (docker) is available inside the container; in your case it isn’t, you need to add it to the image.

Mounting /var/run/docker.sock inside the container is the usual approach for this, as long as you’re comfortable exposing your host’s Docker daemon to the container. For this to work, you also need to ensure the Docker client binary (docker) is available inside the container; in your case it isn’t, you need to add it to the image.

Source Link
Stephen Kitt
  • 480.9k
  • 59
  • 1.2k
  • 1.4k

Mounting /var/run/docker.sock inside the container is the usual approach for this, as long as you’re comfortable exposing your host’s Docker daemon to the container. For this to work, you also need to ensure the Docker client binary (docker) is available inside the container; in your case it isn’t, you need to add it to the image.