Able to turn off always pull option for docker images (OD-1976)
Released
ch-ld opened 3 weeks ago

Before the upgrade, everything was working normally.

The error message is:

14:07:22 Pending resource allocation... 14:07:22 Executing job (executor: OneDev, server: 127.0.0.1:5710, network: OneDev-32-2712-0)... 14:07:22 Copying job dependencies... 14:07:22 Running step "deploy"... 14:07:25 docker: Error response from daemon: pull access denied for deploy-container, repository does not exist or may require 'docker login': denied: requested access to the resource is denied. 14:07:25 See 'docker run --help'. 14:07:25 Command exited with code 125 14:07:25 Step "deploy" is failed (2 seconds) 14:07:26 Job finished

ch-ld commented 3 weeks ago

The error message is:

docker: Error response from daemon: pull access denied for deploy-container, repository does not exist or may require 'docker login': denied: requested access to the resource is denied.

ch-ld commented 3 weeks ago

I confirmed that I am using a local image, and there is this image locally, and the image name is also there.

Robin Shen commented 3 weeks ago

For security reason, OneDev now always pull image before running it, in case that someone polluates the image with a self-built one on same machine using same name and tag.

ch-ld commented 3 weeks ago

So how should I configure my local image? My docker hub does not have this image.

Robin Shen commented 3 weeks ago

Please push to docker hub or a self-hosted registry (OneDev has built-in registry), and set up appropriate permissions so that only authorized users can pull/push it.

ch-ld commented 3 weeks ago

Oh no, I have a lot of warehouses and it is very painful to modify. Can you please turn off this configuration and change it to never?

ch-ld commented 3 weeks ago

Can you make a switch to modify this configuration?

Robin Shen changed fields 2 weeks ago
Name Previous Value Current Value
Type
Question
Improvement
Robin Shen changed title 2 weeks ago
Previous Value Current Value
upgraded OneDev to version 10.9.3, I encountered an error when running the local Docker image.
Able to turn off always pull option for docker images
OneDev changed state to 'Closed' 2 weeks ago
Previous Value Current Value
Open
Closed
OneDev commented 2 weeks ago

State changed as code fixing the issue is committed (f414e321)

Referenced from commit 2 weeks ago
OneDev changed state to 'Released' 2 weeks ago
Previous Value Current Value
Closed
Released
OneDev commented 2 weeks ago

State changed as build OD-5246 (10.9.5) is successful

Robin Shen commented 2 weeks ago

The option exists in job executor setting:

2024-07-04_18-16-31_2.png

issue 1 of 1
Type
Improvement
Priority
Normal
Assignee
Labels
No labels
Issue Votes (0)
Watchers (2)
Reference
OD-1976
Please wait...
Page is in error, reload to recover