cogniteev/echo
cogniteev/echo
Docker imageDocker automated-build providing a minimal Docker image for data container, compatible with Docker Compose.
Data-only container does not need Linux distribution. It just needs an executable to start the container.
tianon/true is the perfect Docker image for that. It provides /true
executable and ... that's it!
Unfortunately [Docker Compose][https://github.com/docker/compose] assumes that every container has the /bin/echo
executable (see Compose issue #919 on GitHub)
This image is meant to workaround this by providing this missing /bin/echo
executable.
/bin/echo
(written in C, not ASM ... yet)Install Docker
Download automated build: docker pull cogniteev/echo
Create a data container named data_container:
sudo docker run -v /data --name data_container cogniteev/echo
Create a new container that:
/data
of data_container container/data/bar
sudo echo foo | \
docker run \
--volumes-from data_container \
-i --rm busybox \
tee /data/bar
Create a new container that:
/data
of data_container container/data/bar
sudo docker run --volumes-from data_container --rm busybox cat /data/bar
docker pull cogniteev/echo