Interview Prep
Interview questions, roadmaps and practice sets
Tutorials
Free tutorials on 30+ topics
Blog
Career guides, skills and interview tips
Free PDFs
Notes, cheat sheets and question banks
Certificates
Free skill tests and course certificates
Tools & Whiteboard
Free tools you can use right in the browser
Practice Tests
Mock tests, MCQs and quick Q&A
Free LMS
Learn on the Uncodemy LMS
Choose the best training program according to your career.
Improve the performance of your business with our innovative Industrial Training Program.
Read More →
Our instructor-led training classes are designed to make you an expert.
Read More →
Real-life case studies are a great way to demonstrate your practical knowledge.
Read More →
Explore blogs, latest technologies and industry updates with practical examples.
Read More →Browse all available training programs and choose the right one for your career.
Read More →Know more about who we are and what we stand for.
Discover our mission to equip individuals with essential IT skills and industry expertise.
Read More →
Free tutorials, interview questions, tools and calculators to help you learn.
Explore →Learn, practice and plan your career — bilkul free.
Book a free video counselling session and pick the right course for you.
Read More →Docker Hub is the public registry where most people first download container images and publish their own. This guide explains how it is organised, walks through the commands you will use every day, and lists the security habits worth building from the start.

nginx or yourname/myapp.nginx:1.27-alpine. If you leave it out, Docker uses latest.sha256:…) that always refers to the same image bytes, unlike a tag, which can be moved.Docker Hub marks trusted sources with badges: Docker Official Image (curated base images such as python, nginx, postgres), Verified Publisher (images from vendors whose identity Docker has checked) and Sponsored OSS (open-source projects in Docker's programme). Prefer these over random uploads.
Docker Hub also applies pull rate limits, which are lower for anonymous users than for signed-in accounts. If your CI pipeline pulls often, log in or use a mirror. The current limits are on Docker's "Usage and limits" documentation page.
New to containers in general? Start with Docker basics for beginners and what containers are in DevOps.
docker version
docker run hello-world
If everything works, the second command prints a message starting with Hello from Docker!.
docker search nginx # search Docker Hub from the terminal
docker pull nginx:1.27-alpine # download a specific version
docker images # list local images
docker run -d --name web -p 8080:80 nginx:1.27-alpine
docker ps # running containers
docker logs web # container output
docker stop web && docker rm web # stop and remove
-d runs the container in the background, and -p 8080:80 maps port 8080 on your machine to port 80 inside the container, so the page opens at http://localhost:8080.
docker login -u yourname # paste an access token, not your password
docker build -t myapp:1.0 .
docker tag myapp:1.0 yourname/myapp:1.0
docker push yourname/myapp:1.0
docker logout
The image name on Docker Hub must start with your username or organisation. Create the repository as private on Docker Hub first if the code is not meant to be public.
docker image prune # remove dangling images
docker system df # see disk space used by Docker
docker system prune # remove stopped containers, unused networks and dangling images
docker system prune asks for confirmation. Add -a only if you also want to delete all unused images.
docker login and CI, with the narrowest permission (read-only for pulling), and revoke tokens you no longer use.python:3.12-slim rather than python:latest; for strict reproducibility pin the digest: python:3.12-slim@sha256:<digest>.-slim, -alpine or distroless images). Fewer packages means fewer vulnerabilities to patch.docker scout quickview myapp:1.0 gives a summary and docker scout cves myapp:1.0 lists known vulnerabilities. Open-source scanners such as Trivy do the same job.FROM python:3.12-slim
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
RUN useradd --create-home appuser
USER appuser
CMD ["python", "app.py"]
USER appuser means the process does not run as root inside the container..dockerignore file listing .git, .env, local data and build output so they never enter the image.ENV line or copied file. Every layer can be read by anyone who pulls the image. Use BuildKit secrets (RUN --mount=type=secret,...) at build time and environment variables or a secrets manager at run time.docker run -d --name api \
--read-only --tmpfs /tmp \
--cap-drop ALL \
--security-opt no-new-privileges \
--memory 512m --pids-limit 200 \
-p 8000:8000 yourname/myapp:1.0
--privileged, and do not mount /var/run/docker.sock into a container unless you understand that it gives control of the host's Docker.127.0.0.1 for services that should not be reachable from the network.To take an image from Docker Hub to a cloud server, see deploying container apps with Docker and AWS. For the wider toolchain around containers, DevOps for beginners is a good next read.
Docker Hub has a free personal plan with public repositories and limited private use, plus paid plans with higher pull limits and more features. Check Docker's pricing page for current limits.
docker pull only downloads an image. docker run creates and starts a container from an image, and pulls the image first if it is not already on your machine.
Not in production. latest simply means whatever was pushed last, so it can change under you. Use a specific version tag, or a digest for exact pinning.