## After build your image
## Get your build ID
docker images tiagofranca/php-81-fpm-dev
## You will get some like this:
REPOSITORY TAG IMAGE ID CREATED SIZE
tiagofranca/php-81-fpm-dev latest 9153e9fb37e3 4 minutes ago 571MB
## Now you can create a image TAG based on your image
docker tag 9153e9fb37e3 tiagofranca/php-81-fpm-dev:22-06-01
## DONE!
## Now you have 2 images
docker images tiagofranca/php-81-fpm-dev
REPOSITORY TAG IMAGE ID CREATED SIZE
tiagofranca/php-81-fpm-dev 22-06-01 9153e9fb37e3 4 minutes ago 571MB
tiagofranca/php-81-fpm-dev latest 9153e9fb37e3 4 minutes ago 571MB
## To push:
docker push tiagofranca/php-81-fpm-dev
# or
docker push tiagofranca/php-81-fpm-dev:22-06-01
docker tag SOURCE_IMAGE[:TAG] TARGET_IMAGE[:TAG]
# example ('0e5574283393' is local image id)
docker tag 0e5574283393 fedora/httpd:version1.0