Comments (4)
I know it's abit late and you probably have solved the issue as well, but for others, all the post-processor
s block, should reside inside a post-processors {}
(at least for the OP's case) to be applied sequentially, like this:
post-processors {
post-processor "docker-tag" {
repository = "${var.container_registry}/my-base-image"
tags = [local.container_tag]
}
post-processor "docker-push" {
login = true
login_server = var.container_registry
login_username = var.container_registry_username
login_password = var.container_registry_password
}
}
otherwise, the tag no found error will occure.
from packer-plugin-docker.
I know it's abit late and you probably have solved the issue as well, but for others, all the
post-processor
s block, should reside inside apost-processors {}
(at least for the OP's case) to be applied sequentially, like this:post-processors { post-processor "docker-tag" { repository = "${var.container_registry}/my-base-image" tags = [local.container_tag] } post-processor "docker-push" { login = true login_server = var.container_registry login_username = var.container_registry_username login_password = var.container_registry_password } }otherwise, the tag no found error will occure.
This Packer documentation seems to indicate that putting each post-processor
in a post-processors
block isn't necessary?
from packer-plugin-docker.
from my experience, when running docker-push
post-processor, things are probably a bit diffrent (compare to docker-export), where it will try to push right after the build, without having a tag
and will fail eventually - that's what my understanding. Without clubing together tag and push within a post-processors
block, I always end up with no-tag-found error.
from packer-plugin-docker.
I still have trouble when trying to push multiple images to Artifactory via the docker-push post-processor, with the error:
Pushing: <my_registry><my_image>:<container tag>
The push refers to repository [<my_registry><my_image>]
An image does not exist locally with the tag: <my_registry><my_image>
The image name matches, however it seems like somewhere it's thinking the image name is the tag.
I also am logged in to the Artifactory instance, and I'm able to push with the docker push
command.
from packer-plugin-docker.
Related Issues (20)
- Parallel Docker pushes still failing due to credentials being removed HOT 3
- Unable to push to ECR private repo in 1.0.7 HOT 5
- ECR Login fails in Packer 1.8.3 HOT 5
- No meaningful error even in debug mode when Docker Desktop (WSL2) is not running HOT 2
- /bin/sh: 1: /home/ubuntu/packer/script_2501.sh: Permission denied
- Unable to push an image to ECR HOT 6
- simple docker build changing CMD and ENTRYPOINT of resulting image HOT 2
- Packer should remove /packer-files mount point
- PowerShell at Windows container ignores errors
- Building images in parallel and pushing them to Docker Hub results in premature logout HOT 1
- HCL2 example of "windows_container": true uses ubuntu image HOT 2
- Packer's docker plugin metadata change for Env does require equal sign and cannot extend env vars in hcl2 variant language
- Packer docker builder reseting ENTRYPOINT and CMD
- error with provisioning scripts in docker HOT 4
- Question template in the issue is out of date HOT 1
- Docker-push post processer ecr_login assume role support
- Packer 1.12.0-alpha1 testing
- Packer hangs on "Provisioning with shell script" when provisioning sysbox image HOT 1
- Support `--platform` docker CLI argument to target the image architecture to be produced. HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from packer-plugin-docker.