Docker run for local directory returning unable to find locally

I made a portfolio site using hugo that I’m trying to self host using a containerized nginx instance using docker.
I have a docker file with the following lines:

FROM nginx
COPY docker-instance-hugo /var/www/etduncan/public/

where docker-instance-hugo is a directory in the same directory as the dockerfile, and the path is the public folder of the website from nginx.

I’m following along with This Tutorial and have gone through all this quite a few times and all seems right. when I run the command sudo docker run --name portfolio-nginx -d -p 8080:80 docker-instance-hugo, I am returned the error message:

Unable to find image 'docker-instance-hugo:latest' locally
docker: Error response from daemon: pull access denied for docker-instance-hugo, repository does not exist or may require 'docker login': denied: requested access to the resource is denied.
See 'docker run --help'.

I have already logged in… Am I doing something wrong or is there another way to make a new container that is better?

Thanks y’all.

From the Dockerfile you need to build a container image to run:

docker build -t docker-instance-hugo:latest .

Basic Docker Workflow:

  1. Write a Dockerfile
  2. Build the Docker Image
  3. create a docker container

you have a dockerfile, you need to build an image as suggested by @bluepuma77 before running a container.