Home > Enterprise >  Docker run requires at least 1 argument error
Docker run requires at least 1 argument error

Time:10-08

I'm trying to deploy an image to DigitalOcean via GitHub packages.

I have logged in to GitHub and connected to DigitalOcean.

Now when I try to run my image like:

docker run -it -p 80:80 --name docker.pkg.github.com/myUser/appname/imagename:tag

I'm getting :

Docker run requires at least 1 argument error

What am I doing wrong?

CodePudding user response:

You forgot the --name value!

docker run --name mycontainer image:tag

CodePudding user response:

Alright.

Typicall to find the answer after posting the question but any how.

I did these steps:

  1. logged in to the github packages
  2. connected to digital ocean
  3. tried to push my images from github packages.

Problem was the order above. What i should have done:

  1. connect to digital ocean
  2. login to gihub registry
  3. push image from github registry
  • Related