Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the skills of using Docker

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces the use of Docker skills, the article is very detailed, has a certain reference value, interested friends must read it!

Operation 1, docker top

This command is used to view the process information in a container. For example, if you want to see how many nginx processes are in a nginx container, you can do this.

➜~ docker top 3b307a09d20dUID PID PPID C STIME TTY TIME CMDroot 805787 0 Jul13? 00:00:00 nginx: master process nginx-g daemon off;systemd+ 941 8050 Jul13? 00:03:18 nginx: worker process

2. Docker load & & docker save

I usually use these two commands to download and package K8s images, because you know that the Internet speed in China is not as fast as in foreign countries.

Docker save can save an image to a tar file, and you can do this

Docker save registry:2.7.1 > registry-2.7.1.tar

At the same time, docker load can import images from tar files into docker.

Docker load < registry-2.7.1.tar

3 、 docker search

This command can help you easily search for images in dockerhub on the command line, such as

➜~ docker search nginxNAME DESCRIPTION STARS OFFICIAL AUTOMATEDnginx Official build of Nginx. 13519 [OK] jwilder/nginx-proxy Automated Nginx reverse proxy for docker con... 1846 [OK] richarvey/nginx-php-fpm Container running Nginx + PHP-FPM capable of … [OK] linuxserver/nginx An Nginx container, brought to you by LinuxS... 123bitnami/nginx Bitnami nginx Docker Image 87 [OK] tiangolo/nginx-rtmp Docker image with Nginx using the nginx-rtmp... [OK] jc21/nginx-proxy-manager Docker container for managing Nginx proxy ho... 73alfg/nginx-rtmp NGINX, nginx-rtmp-module and FFmpeg from sou... 71 [OK] nginxdemos/hello NGINX webserver that serves a simple page co... 57 [OK] jlesage/nginx-proxy-manager Docker container for Nginx Proxy Manager 53 [OK] nginx/nginx-ingress NGINX Ingress Controller for Kubernetes 37privatebin/nginx-fpm-alpine PrivateBin running on an Nginx, php-fpm & Al... 31 [OK] schmunk42/nginx-redirect A very simple container to redirect HTTP tra... 18 [OK] nginxinc/nginx-unprivileged Unprivileged NGINX Dockerfiles 16nginx/nginx-prometheus-exporter NGINX Prometheus Exporter 14centos/nginx-112-centos7 Platform for running nginx 1.12 or building... 13centos/nginx-18-centos7 Platform for running nginx 1.8 or building n... 13raulr/nginx-wordpress Nginx front-end for the official wordpress:f... 13 [OK] sophos/nginx-vts-exporter Simple server that scrapes Nginx vts stats a... 7 [OK]. The above is all the content of this article "what are the tips for using Docker?" Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report