Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

152 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Base image (minidocks/base)

The best docker container for developers. This is a very small container (total < 8 MB) based on Alpine image.

Alpine repositories

All images have registered the following apk repositories:

Utilities

All images contain the following extra packages:

  • tini A tiny but valid init for containers.
  • monit Managing and monitoring on a UNIX system.
  • inotify-tools CLI tools providing a simple interface to inotify.
  • dropbear Small SSH 2 client/server designed for small memory environments.
  • envsubst Substitutes environment variables in shell format strings.
  • ca-certificates Common CA certificates PEM files.
  • su-exec Switch user and group id, setgroups and exec.
  • wait-for Wait for another service to become available.
  • libc6-compat Compatibility libraries for glibc.
  • flock File locker from util-linux.
  • tzdata Timezone data
  • musl-locales Locales support for musl.

Features

Host user id and group id

The base image matches your userid / groupid inside the container at runtime.

Inspiration:

Handling user permissions

docker run --rm -e SUEXEC=$(id -u):$(id -g) <minidocks/image> sh

Process Supervision

escape quote https://stackoverflow.com/questions/15783701/which-characters-need-to-be-escaped-when-using-bash http://www.etalabs.net/sh_tricks.html

SSH

Pregenerated keys by dropbearkey -t ecdsa -f /etc/dropbear/dropbear_ecdsa_host_key dropbearkey -t ed25519 -f /etc/dropbear/dropbear_ed25519_host_key

rootfs

ssh

Timezone

Wait

https://github.com/erikogan/wait4ports https://raw.githubusercontent.com/eficode/wait-for/master/wait-for https://raw.githubusercontent.com/CraftShell/wait-host/master/wait-host.sh https://github.com/bash-suite/wait-host/blob/master/wait-host.sh https://stackoverflow.com/questions/31746182/docker-compose-wait-for-container-x-before-starting-y/41854997#41854997 wget -O /usr/local/bin/wait https://github.com/ufoscout/docker-compose-wait/releases/download/2.9.0/wait && chmod a+x /usr/local/bin/wait \

Locales

gliderlabs/docker-alpine#144

Supervise

Environment variables

  • ALIAS_*:

  • CLEAN:

  • ENV_FILE:

  • AUTO_CHOWN:

  • PATH_PREFIX:

  • PATH_SUFFIX:

  • CRON_USER_*:

  • CRON_SCHEDULE_*:

  • CRON_COMMAND_*:

  • STARTUP_COMMAND_*:

  • FILE_*_PATH:

  • FILE_*_CONTENT:

  • SUEXEC:

  • ID:

  • USER_NAME: User name. You can use $USERNAME to get current user name.

  • USER_ID: User ID. You can use $UID to get current user ID.

  • GROUP_NAME: User group name. You can use $(id -g -n $USERNAME) to get current user group name.

  • GROUP_ID: User group ID. You can use $(id -g $USERNAME) to get current user group ID.

  • USER_SHELL: User shell. Default value: /bin/bash.

  • USER_PASSWORD: User password. Default value: password.

  • USER_MASK: User mask.

  • PATH_HOME: Default value: /home/${HOST_USER_NAME}.

  • TIMEZONE:

https://github.com/hejack0207/empty.c (sexpect)

Run GUI application

xhost +
docker run --rm -it -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix -v `pwd`:/app -w /app minidocks/gimp

Tags

Tag Size
latest, 3.24
build, 3.24-build
edge
edge-build
3.24
3.24-build
3.23
3.23-build
3.22
3.22-build
3.21
3.21-build

Inspiration

Alternatives

https://ypereirareis.github.io/blog/2015/12/01/docker-container-external-links-alias-hosts-unavailable/ https://jtreminio.com/blog/running-docker-containers-as-current-host-user

About

A minimal Alpine base image modified for Docker-friendliness

Resources

Stars

10 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages