Sign inSign up

glen/scratch

By glen

•Updated almost 9 years ago

scratch image with exit 0

Image
0

10K+

glen/scratch repository overview

⁠Docker Scratch Image

When using docker-compose and want to use docker image only for volume purpose one could use FROM scratch, but that image does not execute due lack of ENTRYPOINT which results docker-compose failing to start the container.

Having such docker-compose.yml:

chroot:
  image: ac-ppc-chroot

Now running:

# docker-compose up
Recreating 9e9429f09b14_qemu_chroot_1

ERROR: for chroot  Cannot create container for service chroot: No command specified
ERROR: Encountered errors while bringing up the project.

This image tries to solve this by embedding smallest executable into image, which is 496 bytes.

Created based on awesome blog⁠ post.

The smallest executable is created based another blog⁠.

Similar project: dockerhub: tianon/true⁠

Tag summary

Content type

Image

Digest

Size

222 Bytes

Last updated

almost 9 years ago

docker pull glen/scratch