bash$ docker run --rm -it debian:stable-slim bash
que hace:
• --rm: elimina el contenedor al salir.
• -it: modo interactivo con TTY.
• bash: abre la shell (podés usar sh si preferís).
Siempre trae la última imagen:
docker run --rm -it --pull=always debian:stable-slim bash
Apple Silicon, forzar arquitectura:
docker run --rm -it --platform=linux/arm64/v8 debian:stable-slim bash
Montar tu directorio actual dentro del contenedor (para probar cosas sobre tus archivos):
docker run --rm -it -v "$PWD":/work -w /work debian:stable-slim bash
Aún más “efímero/limpio” (sin escribir al FS del contenedor):
docker run --rm -it \
--read-only \
--tmpfs /tmp \
--tmpfs /run \
-v "$PWD":/work:ro -w /work \
debian:stable-slim bash
Entrar como usuario no-root (simple):
docker run --rm -it -u $(id -u):$(id -g) -v "$PWD":/work -w /work debian:stable-slim bash
Instalar cositas:
apt-get update && apt-get install -y curl git vim htop zsh && rm -rf /var/lib/apt/lists/*
Con nombre (por si querés docker exec desde otra terminal mientras está vivo):
docker run --rm -it --name debtest debian:stable-slim bash
en otra terminal:
docker exec -it debtest bashLogging by nature is complex and in containerized environments there are new challenges that need to be addressed. In this article we will describe the current status of the Fluentd Ecosystem and how Fluent Bit (a Fluentd sub-project) is filling the gaps in cloud native environments. Finally we will do a global overview of the new Fluent Bit v0.13 release and its major improvements for Kubernetes users.
version: '2'
services:
nginx:
image: shippingdocker/nginx:1.2
ports:
- "80:80"
volumes:
- .:/var/www/html
networks:
- appnet
php:
image: shippingdocker/php:1.2
volumes:
- .:/var/www/html
networks:
- appnet
redis:
image: redis:alpine
networks:
- appnet
db:
image: mysql:latest
ports:
- "3306:3306"
environment:
MYSQL_ROOT_PASSWORD: 123456
MYSQL_USER: dev
MYSQL_PASSWORD: 123456
MYSQL_DATABASE: myapp
networks:
- appnet
mail:
image: mailhog/mailhog:latest
ports:
- "9025:8025"
networks:
- appnet
networks:
appnet:
driver: "bridge"
volumes:
data:
driver: "local"
pms-docker - Plex Media Server Docker repo, for all your PMS docker needs.