aws-samples / aws-samples/amazon-cloudwatch-container-insights
Unable to build the sample Dockerfile with multi architecture
- Dominant language
- Shell
- Stars
- 178
- Forks
- 117
- Avg merge
- 1d 10h
- Merged PRs (30d)
- 3
Description
using this sample:
https://github.com/aws-samples/amazon-cloudwatch-container-insights/blob/master/cloudwatch-agent-dockerfile/Dockerfile
when building it with this command :
`docker buildx build --platform linux/amd64,linux/arm64/v8 .`
I'm getting this error:
#13 117.7 dpkg: error processing archive amazon-cloudwatch-agent.deb (--install):
#13 117.7 package architecture (amd64) does not match system (arm64)
#13 117.7 Errors were encountered while processing:
#13 117.7 amazon-cloudwatch-agent.deb
Could you assist to resolve it?
Contributor guide
Research direction
Start with the sample cloudwatch-agent-dockerfile/Dockerfile and reproduce the reported `docker buildx build --platform linux/amd64,linux/arm64/v8 .` command. Trace how amazon-cloudwatch-agent.deb is selected and installed for each target architecture. Done means the sample builds successfully for both linux/amd64 and linux/arm64/v8 without the dpkg architecture error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, dockerfile, shell
- Domain
- build-system, devops, infrastructure
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100