Dante Oz
02/13/2024, 4:29 PMRiccardo Amadio
02/13/2024, 4:55 PMDante Oz
02/13/2024, 5:15 PMDante Oz
02/13/2024, 5:36 PMRiccardo Amadio
02/14/2024, 8:37 AMBrett
03/28/2024, 2:22 AMDante Oz
03/28/2024, 3:57 AMBrett
03/28/2024, 1:47 PMdocker.errors.DockerException: Error while fetching server API version: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory'))
Did you experience anything similar?Dante Oz
03/28/2024, 3:54 PMBrett
03/28/2024, 4:00 PMdocker.errors.ImageNotFound: 404 Client Error for <http+docker://localhost/v1.41/images/create?tag=latest&fromImage=dagster-docker-runner>: Not Found ("pull access denied for dagster-docker-runner, repository does not exist or may require 'docker login': denied: requested access to the resource is denied")
The image is local on the codeserver, but for some reason it seems like dagster is trying to pull it remotely ?Dante Oz
03/28/2024, 4:19 PMimage:
field for the code location service?Brett
03/28/2024, 4:24 PMdagster.yaml
I have:
run_launcher:
module: dagster_docker
class: DockerRunLauncher
config:
image: "dagster-docker-runner:latest"
I even tried adding the variable to the Dockerfile I use for the codeserver: ENV DAGSTER_CURRENT_IMAGE=dagster-docker-runner
Dante Oz
03/28/2024, 4:50 PMQueuedRunCoordinator
.Brett
03/28/2024, 4:52 PMDante Oz
03/28/2024, 5:34 PMimage:
line from the Dagster yaml and only setting DAGSTER_CURRENT_IMAGE=dagster-docker-runner
. Also did you set a volume bind for /var/run/docker.sock
.Dante Oz
03/28/2024, 5:37 PMDAGSTER_CURRENT_IMAGE
environment variable set for my daemon
and code-location
containers.
3. A volume bind /var/run/docker.sock:/var/run/docker.sock
set for the daemon
container.Dante Oz
03/28/2024, 5:40 PMBrett
03/28/2024, 6:11 PMdocker run -v /var/run/docker.sock:/var/run/docker.sock --restart always -d --name dagster-daemon dagster-daemon dagster-daemon run
docker run -v /var/run/docker.sock:/var/run/docker.sock --restart always -d -p 3000:3000 --name dagster-webserver dagster-webserver dagster-webserver -h 0.0.0.0 -p 3000
docker run -v /var/run/docker.sock:/var/run/docker.sock --restart always -d -p 4000:4000 --name dagster-codeserver dagster-codeserver dagster code-server start -f all_code_entry.py --host 0.0.0.0 --port 4000
The dagster-docker-runner
image definitely exists on the code server:
$ docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
dagster-docker-runner latest e11178232ace 3 seconds ago 360MB
dagster-codeserver latest dcdff35e3050 5 minutes ago 361MB
<none> <none> 8272e767b9b0 17 minutes ago 361MB
<none> <none> 37a4c1a17974 2 hours ago 361MB
<none> <none> 6236027e0d24 2 hours ago 361MB
python 3.12-slim 23cd4350f4bd 6 days ago 130MB
I tried moving DAGSTER_CURRENT_IMAGE
around to dagster.yaml and each of the service containers (1 x daemon, codeserver, UI webserver). Still getting that login warning. I think dagster is trying to pull a container from the registry instead of locally. That is my guess.
Are your containers in dockerhub?Dante Oz
03/28/2024, 7:22 PM-e DAGSTER_CURRENT_IMAGE='dagster-codeserver'
to the daemon and code-location invocations.Brett
03/28/2024, 8:09 PMdocker.errors.ImageNotFound: 404 Client Error for <http+docker://localhost/v1.41/images/create?tag=latest&fromImage=dagster-codeserver>: Not Found ("pull access denied for dagster-codeserver, repository does not exist or may require 'docker login': denied: requested access to the resource is denied")