Skip to content

Latest commit

 

History

History
41 lines (26 loc) · 2.3 KB

README.md

File metadata and controls

41 lines (26 loc) · 2.3 KB

docker-autobuild-data-container

Generate docker image for data container from docker container (in runtime).

Demo

asciicast

From docker hub: link

docker run --rm -v /var/lib/docker:/var/lib/docker -v /var/run/docker.sock:/var/run/docker.sock -e CONTAINER=<run_container_name> -e IMAGE=<image_name> fedeg/docker-autobuild-data-container:latest
Docker version:
  • 1.12, 1.12.1, latest:

docker run --rm -v /var/lib/docker:/var/lib/docker -v /var/run/docker.sock:/var/run/docker.sock -e CONTAINER=<run_container_name> -e IMAGE=<image_name> fedeg/docker-autobuild-data-container:latest
  • 1.11, 1.11.2:

docker run --rm -v /var/lib/docker:/var/lib/docker -v /var/run/docker.sock:/var/run/docker.sock -e CONTAINER=<run_container_name> -e IMAGE=<image_name> fedeg/docker-autobuild-data-container:1.11

From repo:

docker build --tag=docker-autobuild-data-container .
docker run --rm -v /var/lib/docker:/var/lib/docker -v /var/run/docker.sock:/var/run/docker.sock -e CONTAINER=<run_container_name> -e IMAGE=<image_name> docker-autobuild-data-container