Skip to content

Unable to build docker container using docker build and docker-compose build #5160

Closed
@danBamikiya

Description

@danBamikiya

Bug description

I tried to build a container using docker-compose build and later using docker build but both methods resulted in an error:

Building server
Sending build context to Docker daemon    190kB

Step 1/8 : FROM node:14-slim AS server-dev
 ---> 85ef76a59eb1
Step 2/8 : WORKDIR /app
 ---> Using cache
 ---> 14deb1432a70
Step 3/8 : COPY ./package*.json ./
 ---> Using cache
 ---> 837c029ec0b4
Step 4/8 : RUN npm i
 ---> Running in d21be111f2ec
OCI runtime create failed: container_linux.go:367: starting container process caused: process_linux.go:495: container init caused: rootfs_linux.go:60: mounting "proc" to rootfs at "/proc" caused: operation not permitted: unknown

I tried using another workspace but both resulted in the same error.

Steps to reproduce

Try to build a container image using docker build or docker-compose build.

Expected behavior

It should build the images.

Example repository

Its private.

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions