admin管理员组文章数量:1023764
In a azure pipeline I have two steps:
The first step is to build a Docker image (which provides a cross compile environment)
Second step is to build
steps: - checkout: self clean: true - task: DockerInstaller@0 displayName: Docker Installer inputs: dockerVersion: '17.09.0-ce' releaseType: stable - bash: | docker -t my_image -f path/to/Dockerfile . displayName: "Build docker image" - bash: | docker run -ti my_image <some_build_command> displayName: "Build application"
The log output looks like:
Resolving "my_image" using unqualified-search registries (/etc/containers/registries.conf)
Trying to pull docker.io/library/my_image:latest...
Trying to pull quay.io/my_image:latest...
Error: 2 errors occurred while pulling:
* initializing source docker://my_image:latest: reading manifest latest in docker.io/library/my_image: errors:
denied: requested access to the resource is denied
unauthorized: authentication required
* initializing source docker://quay.io/my_image:latest: reading manifest latest in quay.io/pm-linux-arm64: StatusCode: 404, <!doctype html>
<html lang=en>
<title>404 Not Foun...
I seems that the worker ignores my docker image. When doing a 'docker images' before build command it outputs my_image as part of the local docker registry
Does anyone has an idea?
In a azure pipeline I have two steps:
The first step is to build a Docker image (which provides a cross compile environment)
Second step is to build
steps: - checkout: self clean: true - task: DockerInstaller@0 displayName: Docker Installer inputs: dockerVersion: '17.09.0-ce' releaseType: stable - bash: | docker -t my_image -f path/to/Dockerfile . displayName: "Build docker image" - bash: | docker run -ti my_image <some_build_command> displayName: "Build application"
The log output looks like:
Resolving "my_image" using unqualified-search registries (/etc/containers/registries.conf)
Trying to pull docker.io/library/my_image:latest...
Trying to pull quay.io/my_image:latest...
Error: 2 errors occurred while pulling:
* initializing source docker://my_image:latest: reading manifest latest in docker.io/library/my_image: errors:
denied: requested access to the resource is denied
unauthorized: authentication required
* initializing source docker://quay.io/my_image:latest: reading manifest latest in quay.io/pm-linux-arm64: StatusCode: 404, <!doctype html>
<html lang=en>
<title>404 Not Foun...
I seems that the worker ignores my docker image. When doing a 'docker images' before build command it outputs my_image as part of the local docker registry
Does anyone has an idea?
Share Improve this question asked Nov 18, 2024 at 18:15 MarkaRagnos0815MarkaRagnos0815 2104 silver badges15 bronze badges1 Answer
Reset to default 1adding "--pull never" in docker run command solved the issue
EDIT: there was a second Problem under the hood. The Docker I am building produces a shell script to run commands using this image. The script is detecting the container-rizer app and selected podman instead of docker. podman did not find the image because it was build using docker .
In a azure pipeline I have two steps:
The first step is to build a Docker image (which provides a cross compile environment)
Second step is to build
steps: - checkout: self clean: true - task: DockerInstaller@0 displayName: Docker Installer inputs: dockerVersion: '17.09.0-ce' releaseType: stable - bash: | docker -t my_image -f path/to/Dockerfile . displayName: "Build docker image" - bash: | docker run -ti my_image <some_build_command> displayName: "Build application"
The log output looks like:
Resolving "my_image" using unqualified-search registries (/etc/containers/registries.conf)
Trying to pull docker.io/library/my_image:latest...
Trying to pull quay.io/my_image:latest...
Error: 2 errors occurred while pulling:
* initializing source docker://my_image:latest: reading manifest latest in docker.io/library/my_image: errors:
denied: requested access to the resource is denied
unauthorized: authentication required
* initializing source docker://quay.io/my_image:latest: reading manifest latest in quay.io/pm-linux-arm64: StatusCode: 404, <!doctype html>
<html lang=en>
<title>404 Not Foun...
I seems that the worker ignores my docker image. When doing a 'docker images' before build command it outputs my_image as part of the local docker registry
Does anyone has an idea?
In a azure pipeline I have two steps:
The first step is to build a Docker image (which provides a cross compile environment)
Second step is to build
steps: - checkout: self clean: true - task: DockerInstaller@0 displayName: Docker Installer inputs: dockerVersion: '17.09.0-ce' releaseType: stable - bash: | docker -t my_image -f path/to/Dockerfile . displayName: "Build docker image" - bash: | docker run -ti my_image <some_build_command> displayName: "Build application"
The log output looks like:
Resolving "my_image" using unqualified-search registries (/etc/containers/registries.conf)
Trying to pull docker.io/library/my_image:latest...
Trying to pull quay.io/my_image:latest...
Error: 2 errors occurred while pulling:
* initializing source docker://my_image:latest: reading manifest latest in docker.io/library/my_image: errors:
denied: requested access to the resource is denied
unauthorized: authentication required
* initializing source docker://quay.io/my_image:latest: reading manifest latest in quay.io/pm-linux-arm64: StatusCode: 404, <!doctype html>
<html lang=en>
<title>404 Not Foun...
I seems that the worker ignores my docker image. When doing a 'docker images' before build command it outputs my_image as part of the local docker registry
Does anyone has an idea?
Share Improve this question asked Nov 18, 2024 at 18:15 MarkaRagnos0815MarkaRagnos0815 2104 silver badges15 bronze badges1 Answer
Reset to default 1adding "--pull never" in docker run command solved the issue
EDIT: there was a second Problem under the hood. The Docker I am building produces a shell script to run commands using this image. The script is detecting the container-rizer app and selected podman instead of docker. podman did not find the image because it was build using docker .
本文标签: building a docker image and use it directly without push in azure dev opsStack Overflow
版权声明:本文标题:building a docker image and use it directly without push in azure dev ops - Stack Overflow 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://it.en369.cn/questions/1745602201a2158521.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论