How it works...
Docker Hub is an online central repository for sharing Docker images. To use Docker Hub, you need to register with the Hub. Once you sign up, it is simple to pull images shared by yourself or others.
To build a custom image, open a Terminal session with superuser privileges and launch PowerShell. Log in to the Docker Hub using your Docker login credentials.
In this recipe, we demonstrated a sample container life cycle, wherein we got a public image, made modifications to it, committed the image, tagged it so as to uniquely identify it in the repository, and pushed it to the Hub for others to use. We tested the pull as well, and showed that it worked. We used PowerShell cmdlets for all of the operations other than the container ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access