Welcher Befehl aktualisiert nur das Docker-Image?
/var/discourse# ./launcher -h
Usage: launcher COMMAND CONFIG [--skip-prereqs] [--docker-args STRING]
Commands:
start: Start/initialize a container
stop: Stop a running container
restart: Restart a container
destroy: Stop and remove a container
enter: Open a shell to run commands inside the container
logs: View the Docker logs for a container
bootstrap: Bootstrap a container for the config based on a template
run: Run the given command with the config in the context of the last bootstrapped image
rebuild: Rebuild a container (destroy old, bootstrap, start new)
cleanup: Remove all containers that have stopped for > 24 hours
start-cmd: Generate docker command used to start container
Options:
--skip-prereqs Don't check launcher prerequisites
--docker-args Extra arguments to pass when running docker
--skip-mac-address Don't assign a mac address
--run-image Override the image used for running the container
Mein Szenario ist:
Wenn beim Build ein Update des Docker-Images erforderlich ist, aber die Netzwerkverbindung des Servers sehr schlecht ist, bleibt der Prozess sehr lange auf dem Schritt des Image-Updates hängen. Ich würde gerne einen Befehl haben, der speziell für das Aktualisieren des Docker-Images gedacht ist. Dann könnte ich das Image im Voraus separat aktualisieren und anschließend in Ruhe den Code bauen. Zum Beispiel:
./launcher pull-docker
Ich weiß, dass ich mir selbst eine funktionierende Lösung zusammenbasteln kann, aber ich würde es trotzdem bevorzugen, wenn es offiziell von den Entwicklern angeboten würde.