Why am I not authorized? docker: you are not authorized to perform this operation: server returned 401

I am trying to run my image(I build it on the same laptop)

docker run -p 8090:8090 praksa:001
docker: you are not authorized to perform this operation: server returned 401.
See 'docker run --help'.
Docker info
docker info
Client:
 Context:    default
 Debug Mode: false
 Plugins:
  app: Docker App (Docker Inc., v0.9.1-beta3)
  buildx: Docker Buildx (Docker Inc., v0.9.1-docker)
  scan: Docker Scan (Docker Inc., v0.23.0)

Server:
 Containers: 41
  Running: 13
  Paused: 0
  Stopped: 28
 Images: 527
 Server Version: 20.10.22
 Storage Driver: overlay2
  Backing Filesystem: extfs
  Supports d_type: true
  Native Overlay Diff: true
  userxattr: false
 Logging Driver: json-file
 Cgroup Driver: cgroupfs
 Cgroup Version: 1
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog

How to fix this issue?

1 Like

Your command looks right, but ā€œnot authirozedā€ usually means you want to pull an image from the registry which requires authentication and you are not logged in. In that case the error message is usually different:

Error response from daemon: pull access denied for praksa, repository does not exist or may require ā€˜docker loginā€™: denied: requested access to the resource is denied

I found your error message only related to Notary

Is it possible that you use Notary?

No.Image is here on my laptop.

Again,I have the same problem
docker: you are not authorized to perform this operation: server returned 401.
docker run -d -p 80:80 --name mern-stack mern-image:1.1

How to check my permissions?
I do not see alternatives other than a new installation.

I am sorry I donā€™t have new ideas. I havenā€™t found the error message anywhere else to tell you what it means if not what I thought.

I have the some problem, but if I use the Docker Desktop GUI the image run normally, the problem is just in CLI.

Do you solve this problem?