어떤 명령어가 Docker 이미지만 업데이트하나요?
/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
제 상황은 다음과 같습니다:
현재 빌드 시 Docker 이미지를 업데이트해야 하는데 서버 네트워크가 매우 좋지 않으면 이미지 업데이트 단계에서 매우 오래 멈춰 있습니다. Docker 이미지만 별도로 업데이트할 수 있는 명령어가 있으면 좋겠습니다. 그러면 미리 이미지를 업데이트해 두고, 여유롭게 코드를 빌드할 수 있을 것 같습니다. 예를 들어:
./launcher pull-docker
수동으로 사용할 수 있는 버전을 만들어낼 수는 있다는 것을 알고 있지만, 그래도 공식적으로 이런 명령어가 나왔으면 합니다.