Skip to content

Instantly share code, notes, and snippets.

@wolkenarchitekt
Last active February 15, 2021 20:05
Show Gist options
  • Save wolkenarchitekt/49f89b65486b4fb681ea89a79a92edcf to your computer and use it in GitHub Desktop.
Save wolkenarchitekt/49f89b65486b4fb681ea89a79a92edcf to your computer and use it in GitHub Desktop.
Raspberri Pi: Docker vs SystemD services
Advantages Docker:
* Same config for development and production
* Manage dev/prod environment cleanly only via docker-compose files
* No configmanagement necessary - just pass environment variables
Disadvantages Docker:
* Rebuilding images takes long on Raspberry PI
* Building ARM Docker images on non-Raspberry PI build host is complex
* Cannot host private Docker images on docker hub for free - need to run own Docker image hub
Advantages SystemD:
* Integrates cleanly and natively into Debian system
* Fast to roll out updated config using config management - only config diff is applied
* Better tooling to analyze and log running SystemD services
* Better and more fine-granular service dependencies
Disadvantages SystemD:
* Configuration inconsistencies between development (Docker) and production (SystemD+Config management)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment