Skip to content

Build Image throws BuildKit error for --chmod #10482

@electricmessiah

Description

@electricmessiah

Before you start please confirm the following.

Problem Description

Build Image using a Dockerfile with a '--chmod' command throws this error on build:

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:

Steps to Reproduce

Use the Dockerfile from this repo for testing.

https://github.com/MekayelAnik/ispyagentdvr-docker

Portainer logs or screenshots

image

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:latest

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions