Skip to main content

Command Palette

Search for a command to run...

Docker for DevOps Engineers.

Day-16 #90daysofdevopschallenge

Published
β€’2 min readβ€’View as Markdown
Docker for DevOps Engineers.
N

Nikhil Patil

πŸ‘¨β€πŸ’» I love Linux & DevOps! πŸ’»

🐧 LinuxπŸ‘¨β€πŸ’» | DevOps & Cloud Enthusiast | 🌍 Azure Admin | πŸ› οΈ Ansible | πŸ“‚ Git | 🐳 Docker | πŸ”‘ OpenLDAP | πŸ–₯️ System Admin | | πŸš€ Jenkins πŸ› οΈ

🏠 Pune

🌟 I'm really into using and managing computers with Linux. I also like making things work smoothly and quickly.

πŸ“– I work with Microsoft Azure, use tools like Ansible and Git to automate tasks, and make software run in containers with Docker.

πŸ”’ I handle access and security using OpenLDAP, and I'm all about keeping systems running smoothly.

🌐 Exploring opportunities in cloud and DevOps.

πŸ“§ Get in touch: nikrpatil1997@gmail.com

πŸ“Œ Docker

Docker is a software platform that allows you to build, test, and deploy applications quickly. Docker packages software into standardized units called containers that have everything the software needs to run including libraries, system tools, code, and runtime. Using Docker, you can quickly deploy and scale applications into any environment and know your code will run.

πŸ“Œ Task-1 Use the docker run command to start a new container and interact with it through the command line

docker run hello-world

πŸ“Œ Task-2 Use the docker inspect command to view detailed information about a container or image.

docker inspect <container id>

πŸ“Œ Task-3 Use the docker port command to list the port mappings for a container.

docker port <container id/name>

πŸ“Œ Task-4 Use the docker stats command to view resource usage statistics for one or more containers.

docker stats <container id>

πŸ“Œ Task-5 Use the docker top command to view the processes running inside a container.

docker top <container id>

πŸ“Œ Task-6 Use the docker save command to save an image to a tar archive.

docker save -o nginx.tar docker.io/nginx

## -o = to write to a file, instead of STDOUT.

πŸ“Œ Task -7 Use the docker load command to load an image from a tar archive.

docker load -i  nginx.tar

## -i =  --input string   Read from tar archive file, instead of STDI