安装docker镜像nginx1.26.0版本,与删除docker容器【灵异事件】

为了http3 的这个模块,所以需要升级nginx的版本,需要nginx1.26.0才有
–with-http_v3_module 这个模块

为什么记录一下?因为觉得奇怪

1:删除nginx镜像,显示镜像还被某个容器在使用

luichun@luichun:~$ docker rmi nginx:latest
Error response from daemon: conflict: unable to remove repository reference "nginx:latest" (must force) - container 05bfcd451e31 is using its referenced image 03861782bd3b

2:通过docker ps 命令查看当前运行的docker容器
结果:显示当前是没有容器在运行

luichun@luichun:~$ docker ps
CONTAINER ID   IMAGE     COMMAND   CREATED   STATUS    PORTS     NAMES

解决方法

在这里插入图片描述

1:停止容器

luichun@luichun:~$ docker stop 05bfcd451e31
05bfcd451e31

2:删除容器–二次删除容器

luichun@luichun:~$ docker rm 05bfcd451e31
05bfcd451e31
luichun@luichun:~$ docker rm 05bfcd451e31
Error response from daemon: No such container: 05bfcd451e31

3:删除nginx镜像

luichun@luichun:~$ docker rmi nginx:latest
Untagged: nginx:latest
Untagged: nginx@sha256:d1c3a4e634ab6b7089dfc0b1e70a401972493e9e16a65b3f655b3a07955571f7
Deleted: sha256:03861782bd3bd54ac209eb40764e3851600bc7c59b2782fc65da7ff629bd8b54
Deleted: sha256:bc2568706140a3fddba85f62a5b19f849340d0e45307fd4e1402e30b40889dc3
Deleted: sha256:ca6863b2a3d7623a6c5b33036ff7b42e4286723d242be0750b5f14d4370c3044
Deleted: sha256:fb39d1ca636d8b05990a26268246641b60283e26a2432e087eec8bae545233dc
Deleted: sha256:708c786290e909197e36af6f57687b7edf3f7f9e17f13a4095f48b13c1baa148
Deleted: sha256:5e238c87da4f01c383b5aeac4c4b23e18857577d45d0ba4f6b83746e522b6fdc
Deleted: sha256:7ddff5277be31f8e292d130b498e1a8dec264f3963f99d46ced3ea7bc7338557

重新下载最新的nginx镜像【nginx:latest是1.25.5】

docker run -d -P nginx:latest

查看nginx镜像

luichun@luichun:~$ docker images
REPOSITORY                        TAG         IMAGE ID       CREATED         SIZE
nginx                             latest      1d668e06f1e5   6 days ago      188MB

在这里插入图片描述

查看这个镜像的历史信息

1 查看这个镜像做过些什么

luichun@luichun:~$ docker history nginx:latest
IMAGE          CREATED       CREATED BY                              
03861782bd3b   2 weeks ago   CMD ["nginx" "-g" "daemon off;"]                容器启动时要执行的命令为 nginx -g daemon off;
<missing>      2 weeks ago   STOPSIGNAL SIGQUIT                              使用STOPSIGNAL指令设置了容器的停止信号为SIGQUIT
<missing>      2 weeks ago   EXPOSE map[80/tcp:{}]                           使用EXPOSE指令暴露了容器的80端口
<missing>      2 weeks ago   ENTRYPOINT ["/docker-entrypoint.sh"]            使用ENTRYPOINT指令设置了容器的入口点为/docker-entrypoint.sh
<missing>      2 weeks ago   COPY 30-tune-worker-processes.sh /docker-ent…   复制了30-tune-worker-processes.sh文件    到/docker-entrypoint.d/目录中,
<missing>      2 weeks ago   COPY 20-envsubst-on-templates.sh /docker-ent…   复制了20-envsubst-on-templates.sh文件    到/docker-entrypoint.d/目录中,
<missing>      2 weeks ago   COPY 15-local-resolvers.envsh /docker-entryp…   复制了15-local-resolvers.envsh文件       到/docker-entrypoint.d/目录中,
<missing>      2 weeks ago   COPY 10-listen-on-ipv6-by-default.sh /docker…   复制了10-listen-on-ipv6-by-default.sh文件到/docker-entrypoint.d/目录中,
<missing>      2 weeks ago   COPY docker-entrypoint.sh / # buildkit          复制了docker-entrypoint.sh 文件到/ 目录中,根目录
<missing>      2 weeks ago   RUN /bin/sh -c set -x     && groupadd --syst…   执行了一系列命令,包括创建系统用户组等操作
<missing>      2 weeks ago   ENV PKG_RELEASE=1~bookworm                      设置了环境变量PKG_RELEASE为1~bookworm
<missing>      2 weeks ago   ENV NJS_RELEASE=2~bookworm                      设置了环境变量NJS_RELEASE为2~bookworm
<missing>      2 weeks ago   ENV NJS_VERSION=0.8.4                           设置了环境变量NJS_VERSION=0.8.4    
<missing>      2 weeks ago   ENV NGINX_VERSION=1.25.5                        设置了环境变量NGINX_VERSION=1.25.5       
<missing>      2 weeks ago   LABEL maintainer=NGINX Docker Maintainers <d…   添加了标签
<missing>      4 weeks ago   /bin/sh -c #(nop)  CMD ["bash"]                 使用CMD指令设置了容器启动时要执行的命令为bash
<missing>      4 weeks ago   /bin/sh -c #(nop) ADD file:d4bb05cb4d403a78b…   添加了一个文件,但未给出文件名和具体内容。
luichun@luichun:~$

这并不是我想要的nginx的版本,我希望nginx的版本是1.26.0这个版本

通过docker hub 查看nginx

在这里插入图片描述

所以我重新删除了这个nginx

luichun@luichun:~$ docker rmi nginx:latest
Error response from daemon: conflict: unable to remove repository reference "nginx:latest" (must force) - container 3a49c535a7bf is using its referenced image 1d668e06f1e5
luichun@luichun:~$ docker stop 3a49c535a7bf
3a49c535a7bf
luichun@luichun:~$ docker rm 3a49c535a7bf
3a49c535a7bf
luichun@luichun:~$ docker rmi nginx:latest
Untagged: nginx:latest
Untagged: nginx@sha256:32e76d4f34f80e479964a0fbd4c5b4f6967b5322c8d004e9cf0cb81c93510766
Deleted: sha256:1d668e06f1e534ab338404ba891c37d618dd53c9073dcdd4ebde82aa7643f83f
Deleted: sha256:682c535e9134a5a3ed2363f4f3157b1775d6909ba09821c89834487cdc987145
Deleted: sha256:8d4ac15aab86b75e75a1f3b4f6606872df9435cd84245e5084a287c3b678f4fc
Deleted: sha256:97747011f58480c1b05123187af96370ee38c15c57a98f0b8da53fcf2042e222
Deleted: sha256:503533d0672e01e9deeff1aaab9495f54783ae70a4036a77ed715208d62f8a50
Deleted: sha256:60f69ec2ab71ac63bcc19f116118e03118eabd578128d2fa75fdd6a476459ed7
Deleted: sha256:e995270c3fe3253ceaa35882876089c2ef357c502ce8f1f7e683946d1fdf6f62
Deleted: sha256:52ec5a4316fadc09a4a51f82b8d7b66ead0d71bea4f75e81e25b4094c4219061

下载nginx1.26.0版本的nginx

docker pull nginx:stable-perl
luichun@luichun:~$ docker pull nginx:stable-perl
stable-perl: Pulling from library/nginx
b0a0cf830b12: Pull complete
13af041419fe: Pull complete
73a2f02e459b: Pull complete
325ea416f2bb: Pull complete
98760cd21ba6: Pull complete
77702ab39408: Pull complete
d095688b3926: Pull complete
cf44434ebd3f: Pull complete
Digest: sha256:0ac31cc6a5dedc5301c01b1cf764f517f34f7fb7c84c8b0cc3f0e9db059a39fe
Status: Downloaded newer image for nginx:stable-perl
docker.io/library/nginx:stable-perlWhat's Next?View a summary of image vulnerabilities and recommendations → docker scout quickview nginx:stable-perl
luichun@luichun:~$

显示出这个nginx的镜像信息
在这里插入图片描述

luichun@luichun:~$ docker history nginx:stable-perl
IMAGE          CREATED       CREATED BY                                     
5e89d2c89523   2 weeks ago   RUN /bin/sh -c set -x;     NGINX_GPGKEY_PATH…   构建镜像时运行的命令,它设置了一些环境变量并导入了 Nginx 的 GPG 密钥。这可能用于验证软件包的完整性和安全性。--[与nginx:latest不同之处]<missing>      2 weeks ago   CMD ["nginx" "-g" "daemon off;"]                容器启动时要执行的命令为 nginx -g daemon off;
<missing>      2 weeks ago   STOPSIGNAL SIGQUIT                              使用STOPSIGNAL指令设置了容器的停止信号为SIGQUIT
<missing>      2 weeks ago   EXPOSE map[80/tcp:{}]                           使用EXPOSE指令暴露了容器的80端口
<missing>      2 weeks ago   ENTRYPOINT ["/docker-entrypoint.sh"]            使用ENTRYPOINT指令设置了容器的入口点为/docker-entrypoint.sh
<missing>      2 weeks ago   COPY 30-tune-worker-processes.sh /docker-ent…   复制了30-tune-worker-processes.sh文件    到/docker-entrypoint.d/目录中,
<missing>      2 weeks ago   COPY 20-envsubst-on-templates.sh /docker-ent…   复制了20-envsubst-on-templates.sh文件    到/docker-entrypoint.d/目录中,
<missing>      2 weeks ago   COPY 15-local-resolvers.envsh /docker-entryp…   复制了15-local-resolvers.envsh文件       到/docker-entrypoint.d/目录中,
<missing>      2 weeks ago   COPY 10-listen-on-ipv6-by-default.sh /docker…   复制了10-listen-on-ipv6-by-default.sh文件到/docker-entrypoint.d/目录中,
<missing>      2 weeks ago   COPY docker-entrypoint.sh / # buildkit          复制了docker-entrypoint.sh 文件到/ 目录中,根目录
<missing>      2 weeks ago   RUN /bin/sh -c set -x     && groupadd --syst…   执行了一系列命令,包括创建系统用户组等操作
<missing>      2 weeks ago   ENV PKG_RELEASE=1~bookworm                      设置了环境变量PKG_RELEASE为1~bookworm
<missing>      2 weeks ago   ENV NJS_RELEASE=2~bookworm                      设置了环境变量NJS_RELEASE为2~bookworm
<missing>      2 weeks ago   ENV NJS_VERSION=0.8.4                           设置了环境变量NJS_VERSION=0.8.4    
<missing>      2 weeks ago   ENV NGINX_VERSION=1.26.0                        设置了环境变量NGINX_VERSION=1.26.0       --[与nginx:latest不同之处]
<missing>      2 weeks ago   LABEL maintainer=NGINX Docker Maintainers <d…   添加了标签
<missing>      2 weeks ago   /bin/sh -c #(nop)  CMD ["bash"]                 使用CMD指令设置了容器启动时要执行的命令为bash
<missing>      2 weeks ago   /bin/sh -c #(nop) ADD file:4b1be1de1a1e5aa60…   添加了一个文件,但未给出文件名和具体内容。
luichun@luichun:~$

运行nginx1.26.0

在这里插入图片描述

# nginx -v
nginx version: nginx/1.26.0
# nginx -V
nginx version: nginx/1.26.0
built by gcc 12.2.0 (Debian 12.2.0-14) 
built with OpenSSL 3.0.9 30 May 2023 (running with OpenSSL 3.0.11 19 Sep 2023)
TLS SNI support enabled
configure arguments: 
--prefix=/etc/nginx 
--sbin-path=/usr/sbin/nginx 
--modules-path=/usr/lib/nginx/modules 
--conf-path=/etc/nginx/nginx.conf 
--error-log-path=/var/log/nginx/error.log 
--http-log-path=/var/log/nginx/access.log 
--pid-path=/var/run/nginx.pid 
--lock-path=/var/run/nginx.lock 
--http-client-body-temp-path=/var/cache/nginx/client_temp 
--http-proxy-temp-path=/var/cache/nginx/proxy_temp 
--http-fastcgi-temp-path=/var/cache/nginx/fastcgi_temp 
--http-uwsgi-temp-path=/var/cache/nginx/uwsgi_temp 
--http-scgi-temp-path=/var/cache/nginx/scgi_temp 
--user=nginx --group=nginx --with-compat 
--with-file-aio --with-threads 
--with-http_addition_module 
--with-http_auth_request_module 
--with-http_dav_module 
--with-http_flv_module 
--with-http_gunzip_module 
--with-http_gzip_static_module 
--with-http_mp4_module 
--with-http_random_index_module 
--with-http_realip_module 
--with-http_secure_link_module 
--with-http_slice_module 
--with-http_ssl_module 
--with-http_stub_status_module 
--with-http_sub_module 
--with-http_v2_module 
--with-http_v3_module 
--with-mail 
--with-mail_ssl_module 
--with-stream 
--with-stream_realip_module 
--with-stream_ssl_module 
--with-stream_ssl_preread_module 
--with-cc-opt='-g -O2 -ffile-prefix-map=/data/builder/debuild/nginx-1.26.0/debian/debuild-base/nginx-1.26.0=. -fstack-protector-strong -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fPIC' 
--with-ld-opt='-Wl,-z,relro -Wl,-z,now -Wl,--as-needed -pie'

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://xiahunao.cn/news/3029370.html

如若内容造成侵权/违法违规/事实不符,请联系瞎胡闹网进行投诉反馈,一经查实,立即删除!

相关文章

蜂群优化算法(bee colony optimization algorithm)

​注意&#xff1a;本文引用自专业人工智能社区Venus AI 更多AI知识请参考原站 &#xff08;[www.aideeplearning.cn]&#xff09; 算法引言 自然界的启发&#xff1a;BSO算法的灵感来自于蜜蜂在自然界中的觅食行为。在自然界中&#xff0c;蜜蜂需要找到花蜜来生存。当一只蜜…

通用型产品发布解决方案(后端环境搭建)

文章目录 后端renren脚手架配置1.解压后放到项目目录下2.新建商品模块1.创建一个新模块 sunliving-commodity2.删除两个不必要的文件3.pom.xml 引入依赖 3.maven进行聚合管理1.将刚才配置的pom.xml文件复制到父项目下并进行修改2.手动将这个pom.xml加入项目&#xff08;如果右下…

克服 Prometheus 单值数据模型的局限性:GreptimeDB 的新路径

引言 Prometheus 已经成为监控和报警生态系统的基石&#xff0c;在高效、直接地处理实时指标&#xff08;Metric&#xff09;方面有着强大的表现。Prometheus 的核心是一个包含单个值和一系列标签的数据模型。这种设计在提升简单性和适应性的同时&#xff0c;也带来了一些挑战…

论文《Deep graph tensor learning for temporal link prediction》阅读

论文《Deep graph tensor learning for temporal link prediction》阅读 论文概况IntroductionRelated work动态图表示学习图张量表示 Preliminary张量生成建模 深度图张量学习模型A.基于图紧凑的空间表示B.时间模式表示C.时空特征聚合D.损失函数 实验消融实验 总结 论文概况 …

多线程-写入读取文件,使用同步逻辑

在一个进程中&#xff0c;创建一个子线程。 主线程负责:向文件中写入数据 子线程负责:从文件中读取数据 要求使用线程的同步逻辑&#xff0c;保证一定在主线程向文件中写入数据成功之后&#xff0c;子线程才开始运行&#xff0c;去读取文件中的数据 #include <stdio.h> …

【C++】list的使用与模拟实现

&#x1f525;个人主页&#xff1a;北辰水墨 &#x1f525;专栏&#xff1a;C学习仓 本节内容我们来讲解list的使用和模拟实现。 本节难点&#xff1a;list迭代器的模拟实现。 一、list的介绍&#xff1a; 列表 列表是一种序列容器&#xff0c;允许在序列的任何位置进行时间复…

如何制作微信表情包动图?三步在线制作gif表情包

喜欢使用聊天软件的小伙伴们经常会使用一些有趣动态表情包。当我们想要自己制作gif动画&#xff0c;还不想下载软件的时候要怎么实现呢&#xff1f;很简单&#xff0c;通过使用gif在线制作&#xff08;https://www.gif.cn/&#xff09;网站-GIF中文网&#xff0c;无需下载软件手…

基于ESP32和ESP8266的物联网开发过程(二)

在做这个项目前&#xff0c;也做了一些调研。项目的初衷是想要用于智能家居。我比较了小米IoT、阿里云、ESPHOME、巴沙云、点灯科技和ONENET等几个平台。最终选择了Onenet&#xff0c;部分原因是之前用过它的多协议版本&#xff0c;但现在这个版本已经下线了。 小米IoT的公测名…

Java数据结构(链表实战二)

前言 基于链表的操作比较多&#xff0c;希望通过一系列的实战操作&#xff0c;加深对链表的理解和应用。每日更新两题&#xff0c;希望学习的小伙伴关注一波&#xff0c;评论区欢迎讨论交流。 今日份练习 leetcode合并两个有序链表 实现原理 1.先建一个dummy的链表&#x…

React19学习-初体验

升级react19版本 安装 npm install reactbeta react-dombeta如果使用ts则需要在package.json中添加。等正式版发布直接可以使用types/react了 "overrides": {"types/react": "npm:types-reactbeta","types/react-dom": "npm:ty…

【LLM 论文】Chain-of-Verification:通过验证链来减少 LLM 幻觉

论文&#xff1a;Chain-of-Verification Reduces Hallucination in Large Language Models ⭐⭐⭐ arXiv:2309.11495 论文速读 LLM 由于不可避免地会产生幻觉&#xff0c;现有的研究主要鼓励 LLM 在产生 response 之前生成内部思想的推理链&#xff0c;或者通过 self-critique…

PG 全页写

1.什么是全页写 修改一个块的时候&#xff0c;把块读到内存中&#xff0c;commit后,WAL写进程会触发写&#xff0c;把修改的块写到WAL日志文件&#xff0c;如果再往这个块中插入一条数据&#xff0c;数据缓冲区里面的块有两条数据了&#xff0c;再次commit后&#xff0c;PG会把…

车载测试系列:自动驾驶中间件SOME/IP

一、以太网引入汽车 2004年&#xff0c;宝马汽车的OBD诊断口采用的是高速CAN总线&#xff0c;速率为500kbit/s&#xff0c;除去CAN协议本身的开销&#xff0c;通过OBD口升级控制器的净升级速度降到200kbit/s。预计到2008年&#xff0c;软件更新的数据量会达到1GB&#xff0c;按…

2024年化学材料、清洁能源与生物技术国际学术会议(ICCMCEB2024)

2024年化学材料、清洁能源与生物技术国际学术会议(ICCMCEB2024) 会议简介 2024国际化学材料、清洁能源和生物技术大会&#xff08;ICCMCEB2024&#xff09;将在长沙隆重举行。本次会议旨在汇聚来自世界各地的化学材料、清洁能源和生物技术领域的专家学者&#xff0c;共同探…

【计算机毕业设计】springboot合庆镇停车场车位预约系统

本系统为用户而设计制作合庆镇停车场车位预约系统&#xff0c;旨在实现合庆镇停车场车位预约智能化、现代化管理。本合庆镇停车场车位预约管理自动化系统的开发和研制的最终目的是将合庆镇停车场车位预约的运作模式从手工记录数据转变为网络信息查询管理&#xff0c;从而为现代…

vue----- watch监听$attrs 的注意事项

目录 前言 原因分析 解决方案 总结 前言 在 Vue 开发过程中&#xff0c;如遇到祖先组件需要传值到孙子组件时&#xff0c;需要在儿子组件接收 props &#xff0c;然后再传递给孙子组件&#xff0c;通过使用 v-bind"$attrs" 则会带来极大的便利&#xff0c;但同时…

【进程替换】多进程程序替换原理 | 进程程序替换函数 | execlexecv | execlpexecvp

目录 多进程程序替换 多进程程序替换原理 进程程序替换函数详解 execl&execv execlp&execvp execle&execvpe execve 多进程程序替换 我们想要进程替换的同时不影响旧的进程&#xff08;使用多进程版&#xff09;fork创建子进程&#xff0c;让子进程去替换执…

大模型在智能客服领域的应用思考

前言 随着大模型技术的飞速发展,其在商业化应用的落地实践上仍面临着挑战,不论是面向C端用户的付费服务模式,还是面向B端企业的业务赋能策略,目前都尚未形成成熟且清晰的商业模式。 在我所专注的智能客服领域,作为人工智能落地应用的前沿阵地,我深刻感受到大模型的生成…

面试集中营—Redis面试题

一、Redis的线程模型 Redis是基于非阻塞的IO复用模型&#xff0c;内部使用文件事件处理器&#xff08;file event handler&#xff09;&#xff0c;这个文件事件处理器是单线程的&#xff0c;所以Redis才叫做单线程的模型&#xff0c;它采用IO多路复用机制同时监听多个socket&a…