slinstaedt / docker-init

Docker image for running shell commands only once for initialisation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Docker image for running shell commands only once for initialisation

This image is meant for running shell commands in docker containers only once. Ideally used for any kind of initialisation.

Usage: directly via docker

docker run xertz/docker-init "echo hello" "echo world"

Usage: via docker-compose

version: "3"

services:
  init:
    image: xertz/docker-init
    command:
      - echo hello
      - echo world

About

Docker image for running shell commands only once for initialisation


Languages

Language:Shell 82.2%Language:Dockerfile 17.8%