1
0
Fork
You've already forked container-openrc
0
Opinionated OpenRC init script for launching docker-compose containers
This repository has been archived on 2025年06月25日. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
Shell 89.3%
Makefile 10.7%
2025年05月01日 19:16:29 +02:00
.gitattributes Mark .initd as shell 2025年05月01日 19:15:44 +02:00
container.initd Initial commit 2025年05月01日 18:55:31 +02:00
Makefile Initial commit 2025年05月01日 18:55:31 +02:00
README.md Fix typo in README 2025年05月01日 19:16:29 +02:00
UNLICENSE Add license 2025年05月01日 19:07:29 +02:00

OpenRC init script for docker-compose

Opinionated OpenRC init script for launching docker-compose containers

Installation

Alpine Linux

The recommended way to install container-openrc, is to build and install the .apk-package using https://codeberg.org/fossdd/user-aports/src/branch/main/achill/container-openrc/APKBUILD.

Manually

Alternativly, you can install (or package) it using the Makefile. Or by manualling installing https://codeberg.org/fossdd/container-openrc/raw/branch/main/container.initd to /etc/init.d/container

How to configure a Container

  1. Symlink runscript container for youre new Container hello-world:
    ln -s container /etc/init.d/container.hello-world
    
  2. Configure your new Container:
    mkdir -p /var/lib/containers/hello-world/
    vi /var/lib/containers/hello-world/docker-compose.yml
    
  3. Start your new Container:
    doas rc-service container.hello-world start
    

License

This is free and unencumbered software released into the public domain.

Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by any means.

See https://unlicense.org/ for more information.