Skip to content

tainrs/base

GitHub
docker.io

Starting the container

1
2
3
4
5
6
7
8
docker run --rm \
    --name base \
    -e PUID=1000 \ #(1)!
    -e PGID=1000 \ #(2)!
    -e UMASK=002 \ #(3)!
    -e TZ="Etc/UTC" \
    -v ~/config:/config \ #(4)!
    docker.io/tainrs/base:alpine
  1. Set the PUID variable to the local user that has read & write permissions for the config folder. (e.g. PUID=1000 or PUID=$(id -u) for the current user id)

  2. Set the GUID variable to the local group that has read & write permissions for the config folder. (e.g. GUID=1000 or GUID=$(id -g) for the current group id)

  3. UMASK 002 is the default for most applications. This corresponds to 775 or rwxrwxr-x permissions.

  4. Set the path to your config folder as needed. Here it's set to the config subfolder in the current directory.

    Hint: you can use the current workdir as wel. e.g. -v $(pwd)/config:/config

services:
  base:
    container_name: base
    image: docker.io/tainrs/base:alpine
    environment:
      - PUID=1000 #(1)!
      - PGID=1000 #(2)!
      - UMASK=002 #(3)!
      - TZ=Etc/UTC
    volumes:
      - ~/config:/config
  1. Set the PUID variable to the local user that has read & write permissions for the config folder. (e.g. PUID=1000 or PUID=$(id -u) for the current user id)

  2. Set the GUID variable to the local group that has read & write permissions for the config folder. (e.g. GUID=1000 or GUID=$(id -g) for the current group id)

  3. UMASK 002 is the default for most applications. This corresponds to 775 or rwxrwxr-x permissions.

  4. Set the path to your config folder as needed. Here it's set to the config subfolder in the current directory.

    Hint: you can use the current workdir as wel. e.g. -v $(pwd)/config:/config

This image is the base image for all other application images.

Tags

Tags Description Last Updated Age