Sign inSign up

1nfiniteloop/alpine

By 1nfiniteloop

Updated about 5 years ago

This Alpine Docker-image serves as a base for other containers.

Image
0

1.5K

1nfiniteloop/alpine repository overview

Alpine

This Alpine Docker-image serves as a base for other containers.

Versions

  • 1nfiniteloop/alpine:latest from here.

Volumes

  • /etc/patch.d Optionally, used during deveopment

Ports

None

Environment variables

None

Author

Lars Gunnarsson

License

MIT

Usage

Run

Start container with docker run --rm -it --name alpine 1nfiniteloop/alpine:latest /bin/bash -l.

Customize

Path /etc/entrypoint.d contain scripts which runs before the s6-service supervisor starts. They are intended to handle all necessary initial configurations. Note that scripts will run on each startup, i.e. not only once.

Path /etc/patch.d contain patches applied on startup. They are intended to customize configuration-files. I believe applying patches makes changes more visible, compared to just having an overlay file copied into the container.

Create configuration patches

Start container with a bind-mount:

docker run \
  --rm \
  -it \
  --name alpine \
  --user $(id -u):$(id -g) \
  --volume $(pwd)/overlay/etc/patch.d:/etc/patch.d \
  1nfiniteloop/alpine:latest /bin/bash -l

Create a original copy of the file to be changed: cp /etc/inputrc /etc/inputrc~.

Create the patch with make-patch /etc/inputrc.

Tag summary

Content type

Image

Digest

Size

11.7 MB

Last updated

about 5 years ago

docker pull 1nfiniteloop/alpine