Skip to content

Latest commit

 

History

History
63 lines (44 loc) · 2.58 KB

README.md

File metadata and controls

63 lines (44 loc) · 2.58 KB

docker image: alpinebase [Layer 1]

This layer 1 docker image is built upon alpine image edge tag,which itself is built from Alpine Linux Edge branch for best support of DNS search paths and new packages, such as php7@edge/testing repository.If the intent of this image is to be a minimal base for single-service containers, tracking edge is not expected to cause issues (packages are still stable releases, only Alpine itself is a development build).For multi-process containers, it may generate some unexpected results, but the benefit over risk ratio seems high enough for non-critical applications (database applications using this image are required to do more testing before production).

Description

Install su-exec instead of gosu to restrict user privileges. Alias sux=su-exec. Usage: exec sux daemon cmdname which drops root privileges to act as user daemon. Install setcap@libcap to grant PORT<=1024 access to non-root system users(UID<=999) such as 80, 443 etc. Usage: setcap CAP_NET_BIND_SERVICE=+eip /usr/bin/go-dnsmasq

Additions

Packages: su-exec, libcap

Files and Folders:

/:
	entrypoint

/root/:
	.profile

/etc/apk/:
	repositories
    
/usr/bin/:
	apk-install
    apk-remove
    apk-cleanup
    set-timezone

/var/:
	www         [Owner:www-data]

Users and Groups:

www-data:www-data

Caveats

setcap will fail in docker if the host kernel dosen't have the proper config line CONFIG_AUFS_XATTR=y for the aufs filesystem driver. Check if the kernel has it: grep AUFS /boot/config* or grep AUFS_X /boot/config*

Workarounds(avoid aufs): In default config /etc/default/docker or systemd service unit /etc/systemd/system/docker.service add a line or edit an existing DOCKER_OPTS line: DOCKER_OPTS="--storage-driver=devicemapper to use DeviceMapper, OR DOCKER_OPTS="--storage-driver=overlay" to use OverlayFS/2 if possible. sudo service docker restart and run setcap agian.

Tags

This includes the main, testing, and community repositories, but testing packages are masked. To install them, please use apk-install pkgname@testing.

License

Apache 2.0