I've an image from another repo I'd like to upload to my docker repo.
I've managed to save it:
docker save <imageId> -o mydockersimage.tar
Now how can I upload this image to my public repo? Sorry if that's dumb, I'm getting started with docker
I've an image from another repo I'd like to upload to my docker repo.
I've managed to save it:
docker save <imageId> -o mydockersimage.tar
Now how can I upload this image to my public repo? Sorry if that's dumb, I'm getting started with docker
Please follow these steps:
Load the image:
docker load < busybox.tar.gz
Verify:
docker images
Tag the image (note image id from output of previous step):
docker tag 7d9495d03763 yourusername/yourimagename:latest
Login:
docker login
Push the image:
docker push yourusername/yourimagename
If you want to upload an image to a repository you should tag your image
docker tag [initial-image] [reponame]\[imagename]:[tag]
and then push it
docker push [reponame]\[imagename]:[tag]
If you just want to put your image to a new computer you can import this image copy the mydockersimage.tar to the new computer and do
docker import /path/to/mydockersimage.tar
But I thing it not a good practice I encourage you to do a push like my previous answer.