Clone the cgm-remote-monitor project locally
Open a shell in the project root directory (cd cgm-remote-monitor)
Login
docker login –username username –password xxxxxCreate the image
docker build . -t cgm-remote-monitor
Get the image ID
docker image ls
REPOSITORY TAG IMAGE ID CREATED SIZE cgm-remote-monitor latest 81a5bfa0c365 50 seconds ago 263MB
Create an empty cgm-remote-monitor repository in Docker hub
Match your own Docker hub username with your Docker username
docker image tag 81a5bfa0c365 username/cgm-remote-monitor
Push the image to Docker hub
docker push username/cgm-remote-monitor
Your image is available as username/cgm-remote-monitor
cleanup:
docker image prune -a