Build the image docker build . Find the image ID docker images Tag the image docker tag <image_id> <docker_hub_username>/<image_name>:<tag> Push the image docker push <docker_hub_username>/<image_name>:<tag>