Sign inSign up

stangenberg/docker-docker

By stangenberg

•Updated about 11 years ago

docker inside docker

Image
0

308

stangenberg/docker-docker repository overview

⁠Dockerˆ2

This runs Docker⁠ inside Docker⁠.

Dockerhub: thstangenberg/docker⁠

⁠Features

⁠Exposed volumes

  • /var/lib/docker - docker files

⁠Exposed ports

  • 22 / SSH
  • 2375 / Docker

⁠Environment Variables

  • DOCKER_DEBUG - Enable docker debug mode, valid options (true, false), default is false
  • DOCKER_API_CORS - Enable docker CORS headers in the remote API, valid options (true, false), default is false
  • DOCKER_LOG_LEVEL - Set the docker logging level, valid options (debug, info, warn, error, fatal), default is info

⁠Usage

This container runs docker inside docker. It's required to run with the --privileged option.

docker run --name docker --privileged thstangenberg/docker

⁠Build

Make is used as build system.

  • make / starts normal docker build.
  • make run / build and run the container. This uses imagename as container name and automatically stops a running container with an equal name beforehand.
  • make bash / build, run the container and start a bash prompt.
  • make ncbuild / normal build without using the docker cache ( --no-cache ).

Docker Build Reference https://docs.docker.com/reference/builder/⁠

⁠License

Published under the MIT License⁠

Tag summary

Content type

Image

Digest

sha256:962a12787…

Size

153.5 MB

Last updated

about 11 years ago

docker pull stangenberg/docker-docker