push docker-compose images to Docker Hub

root@ubunu2004:~# docker-compose build
website uses an image, skipping
Building product-service
Step 1/3 : FROM python:3-onbuild
Executing 3 build triggers
—> Using cache
—> Using cache
—> b54600ebce6f
Step 2/3 : COPY . /usr/src/app
—> e49923648a44
Step 3/3 : CMD ["python", "api.py"]
—> Running in 3314ea5a2d0c
Removing intermediate container 3314ea5a2d0c
—> fc3e3c31fadc
Successfully built fc3e3c31fadc
Successfully tagged root_product-service:latest

root@ubunu2004:~# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
root_product-service latest fc3e3c31fadc 31 seconds ago 701MB
root@ubunu2004:~# docker tag root_product-service:latest zhuby1973/product-service:1
root@ubunu2004:~# docker push zhuby1973/product-service:1

5 Replies to “push docker-compose images to Docker Hub”

  1. Hello! This is my first visit to your blog! We are a team of volunteers and
    starting a new project in a community in the same niche.
    Your blog provided us beneficial information to work on. You have done a
    wonderful job!

  2. I rarely create responses, but I read a few of the comments here push docker-compose images to Docker Hub – python design. I do have a couple of questions for
    you if it’s okay. Could it be simply me or do a few of these comments look like
    they are left by brain dead people? 😛 And, if you are posting at other online social sites, I’d like to follow everything new you have to post.

    Would you list of all of your public pages like your Facebook page,
    twitter feed, or linkedin profile?

    Here is my blog post :: Nitro Strive Reviews

Leave a Reply

Your email address will not be published. Required fields are marked *