bnb-chain / bsc-docker

48 stars 31 forks source link

Executing `make build-simple` gives `Permission denied` error #15

Open Muhammad-Altabba opened 10 months ago

Muhammad-Altabba commented 10 months ago

I am trying to run for dev environment on Linux machine. And I facing an error:

make build-simple

make build-bsc make[1]: Entering directory '/home/maltabba/repos/experiments/bsc/bsc-docker' "" docker-compose -f docker-compose.bsc.yml build sh: 1: : Permission denied make[1]: [Makefile:12: build-bsc] Error 127 make[1]: Leaving directory '/home/maltabba/repos/experiments/bsc/bsc-docker' make: [Makefile:18: build-simple] Error 2

What do you suggest? Thanks,

STdevK commented 10 months ago

Are you using Docker Desktop?

Muhammad-Altabba commented 9 months ago

No, I am not.

FidelVe commented 8 months ago

having this same issue

$ make build-simple
make build-bsc
make[1]: Entering directory '/home/admin-1/devnet/bsc-docker'
"" docker compose -f docker-compose.bsc.yml build
sh: 1: : Permission denied
make[1]: *** [Makefile:12: build-bsc] Error 127
make[1]: Leaving directory '/home/admin-1/devnet/bsc-docker'
make: *** [Makefile:18: build-simple] Error 2
Muhammad-Altabba commented 8 months ago

@STdevK @ackratos @darren-liu Any suggestion please?

STdevK commented 8 months ago

@Muhammad-Altabba Can you share the details of docker-compose.bsc.yml?

Muhammad-Altabba commented 8 months ago

Hi @STdevK , I am following the steps and so my file is the exact as this: https://github.com/bnb-chain/bsc-docker/blob/master/docker-compose.bsc.yml

And here is its content from my computer:

version: "3.9"

services:
  bsc-geth:
    build:
      context: .
      dockerfile: Dockerfile.bsc
      args:
        GIT_SOURCE: https://github.com/bnb-chain/bsc.git
        GIT_CHECKOUT_REF: master
    image: bsc-geth:docker-local
STdevK commented 7 months ago

What is your local dockerd permission settings?

Muhammad-Altabba commented 7 months ago

What is your local dockerd permission settings?

I use docker for my daily tasks without issues. What exactly you like me to provide and what are the commands to execute to log the permissions you are asking for, please?

STdevK commented 7 months ago

Can you run docker --versioncommand?

Muhammad-Altabba commented 7 months ago

docker --version

Docker version 24.0.5, build 24.0.5-0ubuntu1~22.04.1

STdevK commented 7 months ago

Is the container running in 'privileged mode'?

Execute the following command with the relevant container ID sudo docker inspect --format='{{.HostConfig.Privileged}}' [container-id]