-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Open
Labels
Description
Before you start please confirm the following.
- Yes, I've searched similar issues on GitHub.
- Yes, I've checked whether this issue is covered in the Portainer documentation or knowledge base.
Problem Description
Build Image using a Dockerfile with a '--chmod' command throws this error on build:
- the --chmod option requires BuildKit. Refer to https://docs.docker.com/go/buildkit/ to learn how to build images with BuildKit enabled
The image builds fine from the CLI. Buildkit is enabled in daemon.json, but it should be default from Docker v23 and up. I am currently building with Docker v24.
Expected Behavior
The image should build with both docker build and Portainer's build image function.
Actual Behavior
Build Image using a Dockerfile with a '--chmod' command throws this error on build:
- the --chmod option requires BuildKit. Refer to https://docs.docker.com/go/buildkit/ to learn how to build images with BuildKit enabled
Steps to Reproduce
Use the Dockerfile from this repo for testing.
https://github.com/MekayelAnik/ispyagentdvr-docker
Portainer logs or screenshots
Portainer version
2.19.1
Portainer Edition
Community Edition (CE)
Platform and Version
Docker 24.0.6
OS and Architecture
Debian 12.2 AMD64
Browser
Chrome Latest
What command did you use to deploy Portainer?
docker run -d -p 8000:8000 -p 9443:9443 --name portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer-ce:latestAdditional Information
No response
Reactions are currently unavailable
