Docker-Befehl in docker-compose.yml konvertieren

Konvertieren Sie Docker-Befehle sofort in das docker-compose.yml-Format.

Docker-Befehl
Docker-Parameter-Einstellungen
Eindeutiger Name für den Container
Docker-Image-Name und -Tag
Format: host_port:container_port, mehrere Ports durch Kommas trennen
Container-Neustart-Politik
Eine Umgebungsvariable pro Zeile, Format: KEY=VALUE
Eine Volumen-Zuordnung pro Zeile, Format: host_path:container_path
docker-compose.yml
Beispielbefehle