Hello,
I encountered an issue while trying to build a Docker container using the docker compose
command with BuildKit enabled in the Google Cloud IDX environment. Below are the details of the error and my environment.
Error:
[+] Building 11.2s (1/1) FINISHED docker-container:brave_almeida
=> ERROR [backend internal] booting buildkit 11.2s
=> => pulling image moby/buildkit:buildx-stable-1 10.6s
=> => creating container buildx_buildkit_brave_almeida0 0.6s
------
> [backend internal] booting buildkit:
------
Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error mounting "sysfs" to rootfs at "/sys": mount sysfs:/sys (via /proc/self/fd/6), flags: 0xe: operation not permitted: unknown
Environment:
- Docker version:
Client:
Version: 24.0.9
API version: 1.43
Go version: go1.21.11
Git commit: v24.0.9
Built: Thu Jan 1 00:00:00 1970
OS/Arch: linux/amd64
Context: default
Server:
Engine:
Version: 24.0.9
API version: 1.43 (minimum version 1.12)
Go version: go1.21.11
Git commit: v24.0.9
Built: Tue Jan 1 00:00:00 1980
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: v1.7.13
GitCommit: v1.7.13
runc:
Version: 1.1.12
GitCommit:
docker-init:
Version: 0.19.0
GitCommit:
rootlesskit:
Version: 1.1.1
ApiVersion: 1.1.1
NetworkDriver: slirp4netns
PortDriver: builtin
StateDir: /tmp/rootlesskit1721314958
slirp4netns:
Version: 1.2.2
GitCommit: 0ee2d87523e906518d34a6b423271e4826f71faf
- Docker Compose version: 2.23.1
Steps to Reproduce:
- Enabled Docker BuildKit
DOCKER_BUILDKIT=1
. - Ran
docker compose up --build
.
Expected Behavior: The container should build successfully using BuildKit.
Actual Behavior: The error mentioned above occurred, preventing the container from being built.
Please let me know if you need additional details or further logs to diagnose this issue.
Thank you!