I'm trying to work with the docker program in ubuntu. Created a folder with the Dockerfile / docker / cowsay / Dockerfile file in the home directory
Moved to this directory.
When working from my user manking
docker build -t test/cowsay-dockerfile . Dock daemon socket at unix: ///var/run/docker.sock: Post http: //%2Fvar%2Frun%2Fdocker.sock/v1.30/build? Buildargs =% 7B 7%%%%%%%% var / run / docker.sock: connect: permission denied
If I run through sudo
sudo docker build -t test/cowsay-dockerfile . error checking context: 'can't stat' / home / manking / Documents / docker / cowsay ''.
If I enter
sudo -i then I get to the root directory where there is no Dockerfile file
And how is that right? switch to root and go to the manking directory and call this command there?