Could not build docker from root

I can not create a docker image from root, I have a Dockerfile in /, it gives an error:

root @ onl-dev: / # docker build -t centoslibdemo. Error checking context: "there is no permission to read from '/ Proc / system / net / ipv4 / path / level'".

Can anyone suggest if there is any solution?

+4
source share
1 answer

Move the docker file from the root directory.

There are many reasons for this, not least of which are permission issues. You will almost never use your root directory as a working directory.

+8
source

Source: https://habr.com/ru/post/1656019/


All Articles