sudo docker build -t friendlyhello.
[sudo] password for josh:
invalid argument “friendlyhello.” for t: Error parsing reference: “friendlyhello.” is not a valid repository/tag: invalid reference format
See ‘docker build --help’.
sudo docker build -t friendlyhello .
Sending build context to Docker daemon 3.072 kB
Error response from daemon: Unknown instruction: E
when I do the command without sudo:
docker build -t friendlyhello .
Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.26/build?buildargs=%7B%7D&cachefrom=%5B%5D&cgroupparent=&cpuperiod=0&cpuquota=0&cpusetcpus=&cpusetmems=&cpushares=0&dockerfile=Dockerfile&labels=%7B%7D&memory=0&memswap=0&networkmode=default&rm=1&shmsize=0&t=friendlyhello&ulimits=null: dial unix /var/run/docker.sock: connect: permission denied
docker build -t friendlyhello .
Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.26/build?buildargs=%7B%7D&cachefrom=%5B%5D&cgroupparent=&cpuperiod=0&cpuquota=0&cpusetcpus=&cpusetmems=&cpushares=0&dockerfile=Dockerfile&labels=%7B%7D&memory=0&memswap=0&networkmode=default&rm=1&shmsize=0&t=friendlyhello&ulimits=null: dial unix /var/run/docker.sock: connect: permission denied