Container: Docker
Random linux server tips, this time: Application containers with Docker
Install: https://docs.docker.com/engine/install/ubuntu/ DO NOT INSTALL FROM PACKAGE OR SCRIPT
Test: docker --version
Post Install
add to systemd autostart:
$ sudo systemctl enable docker.service
add docker compose: https://docs.docker.com/compose/install/#install-compose
$ sudo curl -L "https://github.com/docker/compose/releases/download/1.28.2/docker-compose-$(uname -s)- sudo chmod +x /usr/local/bin/docker-compose
test docker compose:
$ docker-compose --version
Docker Security
20210328203831 Be sure to check out [[system-security]] for basic tips on that.
- General: https://docs.docker.com/engine/security/
- Docker daemon socket: https://docs.docker.com/engine/security/https/
- Dockerfile best practices: https://sysdig.com/blog/dockerfile-best-practices/
- Docker Security cheat sheet: https://cheatsheetseries.owasp.org/cheatsheets/Docker_Security_Cheat_Sheet.html
Backlinks
selfhosting
* [[container-apps-docker]]
Systemsicherheit [de]
is a special kind of fun and can be found here: [[container-apps-docker]]
Containers: LXD
For docker application containers, goto [[container-apps-docker]]