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:
- logged in to the github packages
- connected to digital ocean
- tried to push my images from github packages.
Problem was the order above. What i should have done:
- connect to digital ocean
- login to gihub registry
- push image from github registry