尚硅谷Docker实战教程-笔记05【本地镜像发布到阿里云与私有库】

news2025/1/12 3:56:01
  • 尚硅谷大数据技术-教程-学习路线-笔记汇总表【课程资料下载】
  • 视频地址:尚硅谷Docker实战教程(docker教程天花板)_哔哩哔哩_bilibili
  1. 尚硅谷Docker实战教程-笔记01【理念简介、官网介绍、平台入门图解、平台架构图解】
  2. 尚硅谷Docker实战教程-笔记02【安装docker、镜像加速器配置】
  3. 尚硅谷Docker实战教程-笔记03【Docker常用命令】
  4. 尚硅谷Docker实战教程-笔记04【Docker镜像】
  5. 尚硅谷Docker实战教程-笔记05【】
  6. 尚硅谷Docker实战教程-笔记06【】
  7. 尚硅谷Docker实战教程-笔记07【】
  8. 尚硅谷Docker实战教程-笔记08【】

目录

1.基础篇

5.本地镜像发布到阿里云

P026【26_本地镜像发布到阿里云】13:04

6.本地镜像发布到私有库

P027【27_docker私有库简介】05:19

P028【28_新镜像推送私服库案例】19:11


1.基础篇

5.本地镜像发布到阿里云

P026【26_本地镜像发布到阿里云】13:04

[root@node001 ~]# docker images
REPOSITORY       TAG       IMAGE ID       CREATED         SIZE
vlu/mybuntu      1.3       079bf1275a8a   3 hours ago     185MB
atguigu/ubuntu   3.7       7b40f602c178   16 hours ago    72.8MB
hello-world      <none>    9c7a54a9a43c   8 weeks ago     13.3kB
tomcat           latest    fb5657adc892   18 months ago   680MB
ubuntu           latest    ba6acccedd29   20 months ago   72.8MB
hello-world      latest    feb5d9fea6a5   21 months ago   13.3kB
redis            6.0.8     16ecd2772934   2 years ago     104MB
[root@node001 ~]# docker login --username=upward337 registry.cn-hangzhou.aliyuncs.com
Password: 
WARNING! Your password will be stored unencrypted in /root/.docker/config.json.
Configure a credential helper to remove this warning. See
https://docs.docker.com/engine/reference/commandline/login/#credentials-store

Login Succeeded
[root@node001 ~]# docker tag 079bf1275a8a registry.cn-hangzhou.aliyuncs.com/vlu001/myubuntu:1.3
[root@node001 ~]# docker push registry.cn-hangzhou.aliyuncs.com/vlu001/myubuntu:1.3
The push refers to repository [registry.cn-hangzhou.aliyuncs.com/vlu001/myubuntu]
1063fa79728f: Pushed 
9f54eef41275: Pushed 
1.3: digest: sha256:d776354d01cd8ec8fe5d260d3549a796db649497eb19e78c607a0d502373e3ab size: 741
[root@node001 ~]# docker rmi -f 079bf1275a8a
Untagged: vlu/mybuntu:1.3
Untagged: registry.cn-hangzhou.aliyuncs.com/vlu001/myubuntu:1.3
Untagged: registry.cn-hangzhou.aliyuncs.com/vlu001/myubuntu@sha256:d776354d01cd8ec8fe5d260d3549a796db649497eb19e78c607a0d502373e3ab
Deleted: sha256:079bf1275a8a2e7aedd35132d2f4fafc407d799d1f9a3204ef97aed35da20a34
[root@node001 ~]# docker images
REPOSITORY       TAG       IMAGE ID       CREATED         SIZE
atguigu/ubuntu   3.7       7b40f602c178   17 hours ago    72.8MB
hello-world      <none>    9c7a54a9a43c   8 weeks ago     13.3kB
tomcat           latest    fb5657adc892   18 months ago   680MB
ubuntu           latest    ba6acccedd29   20 months ago   72.8MB
hello-world      latest    feb5d9fea6a5   21 months ago   13.3kB
redis            6.0.8     16ecd2772934   2 years ago     104MB
[root@node001 ~]# docker pull registry.cn-hangzhou.aliyuncs.com/vlu001/myubuntu:1.3
1.3: Pulling from vlu001/myubuntu
7b1a6ab2e44d: Already exists 
b9250d242d06: Already exists 
Digest: sha256:d776354d01cd8ec8fe5d260d3549a796db649497eb19e78c607a0d502373e3ab
Status: Downloaded newer image for registry.cn-hangzhou.aliyuncs.com/vlu001/myubuntu:1.3
registry.cn-hangzhou.aliyuncs.com/vlu001/myubuntu:1.3
[root@node001 ~]# docker images
REPOSITORY                                          TAG       IMAGE ID       CREATED         SIZE
registry.cn-hangzhou.aliyuncs.com/vlu001/myubuntu   1.3       079bf1275a8a   4 hours ago     185MB
atguigu/ubuntu                                      3.7       7b40f602c178   17 hours ago    72.8MB
hello-world                                         <none>    9c7a54a9a43c   8 weeks ago     13.3kB
tomcat                                              latest    fb5657adc892   18 months ago   680MB
ubuntu                                              latest    ba6acccedd29   20 months ago   72.8MB
hello-world                                         latest    feb5d9fea6a5   21 months ago   13.3kB
redis                                               6.0.8     16ecd2772934   2 years ago     104MB
[root@node001 ~]# docker run -it 079bf1275a8a /bin/bash
root@62afca1059d7:/# cat a.txt
Hello, apex !
root@62afca1059d7:/# exit
exit
[root@node001 ~]# 

6.本地镜像发布到私有库

P027【27_docker私有库简介】05:19

P028【28_新镜像推送私服库案例】19:11

[root@node001 ~]# docker pull registry
Using default tag: latest
latest: Pulling from library/registry
79e9f2f55bf5: Pull complete 
0d96da54f60b: Pull complete 
5b27040df4a2: Pull complete 
e2ead8259a04: Pull complete 
3790aef225b9: Pull complete 
Digest: sha256:169211e20e2f2d5d115674681eb79d21a217b296b43374b8e39f97fcf866b375
Status: Downloaded newer image for registry:latest
docker.io/library/registry:latest
[root@node001 ~]# docker run -d -p 5000:5000 -v /vlu001/myregistry/:/tmp/registry --privileged=true registry
2a00af7dfd7032f99ebd69d1e3a130244130bf118d26f5839b7db4ae394573a6
[root@node001 ~]# docker ps
CONTAINER ID   IMAGE      COMMAND                   CREATED         STATUS         PORTS                                       NAMES
2a00af7dfd70   registry   "/entrypoint.sh /etc…"   9 seconds ago   Up 7 seconds   0.0.0.0:5000->5000/tcp, :::5000->5000/tcp   pedantic_hofstadter
[root@node001 ~]# docker run -it ubuntu /bin/bash
root@34282c0cb7a7:/# apt-get update
Get:1 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]
Get:2 http://archive.ubuntu.com/ubuntu focal InRelease [265 kB]
Get:3 http://security.ubuntu.com/ubuntu focal-security/restricted amd64 Packages [2479 kB]
Get:4 http://archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
Get:5 http://archive.ubuntu.com/ubuntu focal-backports InRelease [108 kB]
Get:6 http://security.ubuntu.com/ubuntu focal-security/universe amd64 Packages [1066 kB]
Get:7 http://archive.ubuntu.com/ubuntu focal/main amd64 Packages [1275 kB]    
Get:8 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages [2856 kB]
Get:9 http://security.ubuntu.com/ubuntu focal-security/multiverse amd64 Packages [28.5 kB]
Get:10 http://archive.ubuntu.com/ubuntu focal/universe amd64 Packages [11.3 MB]
Get:11 http://archive.ubuntu.com/ubuntu focal/multiverse amd64 Packages [177 kB]                                                                              
Get:12 http://archive.ubuntu.com/ubuntu focal/restricted amd64 Packages [33.4 kB]                                                                             
Get:13 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages [3336 kB]                                                                           
Get:14 http://archive.ubuntu.com/ubuntu focal-updates/multiverse amd64 Packages [31.2 kB]                                                                     
Get:15 http://archive.ubuntu.com/ubuntu focal-updates/restricted amd64 Packages [2618 kB]                                                                     
Get:16 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages [1366 kB]                                                                       
Ign:16 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages                                                                                 
Get:17 http://archive.ubuntu.com/ubuntu focal-backports/main amd64 Packages [55.2 kB]
Get:18 http://archive.ubuntu.com/ubuntu focal-backports/universe amd64 Packages [28.6 kB]
Get:16 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages [1366 kB]
Fetched 27.3 MB in 44s (626 kB/s)                                                                                                                             
Reading package lists... Done
root@34282c0cb7a7:/# apt-get install net-tools
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  net-tools
0 upgraded, 1 newly installed, 0 to remove and 46 not upgraded.
Need to get 196 kB of archives.
After this operation, 864 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu focal/main amd64 net-tools amd64 1.60+git20180626.aebd88e-1ubuntu1 [196 kB]
Fetched 196 kB in 2s (109 kB/s)     
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package net-tools.
(Reading database ... 4127 files and directories currently installed.)
Preparing to unpack .../net-tools_1.60+git20180626.aebd88e-1ubuntu1_amd64.deb ...
Unpacking net-tools (1.60+git20180626.aebd88e-1ubuntu1) ...
Setting up net-tools (1.60+git20180626.aebd88e-1ubuntu1) ...
root@34282c0cb7a7:/# ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 172.17.0.3  netmask 255.255.0.0  broadcast 172.17.255.255
        ether 02:42:ac:11:00:03  txqueuelen 0  (Ethernet)
        RX packets 3139  bytes 28817367 (28.8 MB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 2664  bytes 149121 (149.1 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

root@34282c0cb7a7:/# apt-get update[root@node001 ~]# 
[root@node001 ~]# 
[root@node001 ~]# 
[root@node001 ~]# 
[root@node001 ~]# 
[root@node001 ~]# 
[root@node001 ~]# 
[root@node001 ~]# docker ps
CONTAINER ID   IMAGE      COMMAND                   CREATED         STATUS         PORTS                                       NAMES
34282c0cb7a7   ubuntu     "/bin/bash"               3 minutes ago   Up 3 minutes                                               friendly_allen
2a00af7dfd70   registry   "/entrypoint.sh /etc…"   4 minutes ago   Up 4 minutes   0.0.0.0:5000->5000/tcp, :::5000->5000/tcp   pedantic_hofstadter
[root@node001 ~]# docker commit -m="ifconfig cmd add" -a="vlu" 34282c0cb7a7 ubuntu:1.2
sha256:7295d0d3bc7e2aad583d0be0ce721df37da026f0ada7ff81caa97899d4494677
[root@node001 ~]# docker images
REPOSITORY                                          TAG       IMAGE ID       CREATED          SIZE
ubuntu                                              1.2       7295d0d3bc7e   39 seconds ago   118MB
registry.cn-hangzhou.aliyuncs.com/vlu001/myubuntu   1.3       079bf1275a8a   5 hours ago      185MB
atguigu/ubuntu                                      3.7       7b40f602c178   18 hours ago     72.8MB
hello-world                                         <none>    9c7a54a9a43c   8 weeks ago      13.3kB
tomcat                                              latest    fb5657adc892   18 months ago    680MB
registry                                            latest    b8604a3fe854   19 months ago    26.2MB
ubuntu                                              latest    ba6acccedd29   20 months ago    72.8MB
hello-world                                         latest    feb5d9fea6a5   21 months ago    13.3kB
redis                                               6.0.8     16ecd2772934   2 years ago      104MB
[root@node001 ~]# docker commit -m="ifconfig cmd add" -a="vlu" 34282c0cb7a7 vluubuntu:1.2
sha256:a1ed6fe2f61edb0708701a191cfee7fd238852422c0ac03d52c8bdd089d38ba6
[root@node001 ~]# docker images
REPOSITORY                                          TAG       IMAGE ID       CREATED          SIZE
vluubuntu                                           1.2       a1ed6fe2f61e   2 seconds ago    118MB
ubuntu                                              1.2       7295d0d3bc7e   55 seconds ago   118MB
registry.cn-hangzhou.aliyuncs.com/vlu001/myubuntu   1.3       079bf1275a8a   5 hours ago      185MB
atguigu/ubuntu                                      3.7       7b40f602c178   18 hours ago     72.8MB
hello-world                                         <none>    9c7a54a9a43c   8 weeks ago      13.3kB
tomcat                                              latest    fb5657adc892   18 months ago    680MB
registry                                            latest    b8604a3fe854   19 months ago    26.2MB
ubuntu                                              latest    ba6acccedd29   20 months ago    72.8MB
hello-world                                         latest    feb5d9fea6a5   21 months ago    13.3kB
redis                                               6.0.8     16ecd2772934   2 years ago      104MB
[root@node001 ~]# docker ps
CONTAINER ID   IMAGE      COMMAND                   CREATED         STATUS         PORTS                                       NAMES
34282c0cb7a7   ubuntu     "/bin/bash"               6 minutes ago   Up 6 minutes                                               friendly_allen
2a00af7dfd70   registry   "/entrypoint.sh /etc…"   7 minutes ago   Up 7 minutes   0.0.0.0:5000->5000/tcp, :::5000->5000/tcp   pedantic_hofstadter
[root@node001 ~]# docker stop 34282c0cb7a7
34282c0cb7a7
[root@node001 ~]# docker run -it a1ed6fe2f61e /bin/bash
root@dba80c0be4b2:/# ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 172.17.0.3  netmask 255.255.0.0  broadcast 172.17.255.255
        ether 02:42:ac:11:00:03  txqueuelen 0  (Ethernet)
        RX packets 7  bytes 578 (578.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

root@dba80c0be4b2:/# exit
exit
[root@node001 ~]# docker ps
CONTAINER ID   IMAGE      COMMAND                   CREATED          STATUS          PORTS                                       NAMES
2a00af7dfd70   registry   "/entrypoint.sh /etc…"   10 minutes ago   Up 10 minutes   0.0.0.0:5000->5000/tcp, :::5000->5000/tcp   pedantic_hofstadter
[root@node001 ~]# curl -XGET localhost:5000/v2/_catalog
{"repositories":[]}
[root@node001 ~]# docker tag vluubuntu:1.2  node001:5000/vluubuntu:1.2
[root@node001 ~]# docker images
REPOSITORY                                          TAG       IMAGE ID       CREATED         SIZE
node001:5000/vluubuntu                              1.2       a1ed6fe2f61e   6 minutes ago   118MB
vluubuntu                                           1.2       a1ed6fe2f61e   6 minutes ago   118MB
ubuntu                                              1.2       7295d0d3bc7e   7 minutes ago   118MB
registry.cn-hangzhou.aliyuncs.com/vlu001/myubuntu   1.3       079bf1275a8a   5 hours ago     185MB
atguigu/ubuntu                                      3.7       7b40f602c178   18 hours ago    72.8MB
hello-world                                         <none>    9c7a54a9a43c   8 weeks ago     13.3kB
tomcat                                              latest    fb5657adc892   18 months ago   680MB
registry                                            latest    b8604a3fe854   19 months ago   26.2MB
ubuntu                                              latest    ba6acccedd29   20 months ago   72.8MB
hello-world                                         latest    feb5d9fea6a5   21 months ago   13.3kB
redis                                               6.0.8     16ecd2772934   2 years ago     104MB
[root@node001 ~]# 
[root@node001 ~]# 
[root@node001 ~]# 
[root@node001 ~]# systemctl restart docker
[root@node001 ~]# systemctl status docker
● docker.service - Docker Application Container Engine
   Loaded: loaded (/usr/lib/systemd/system/docker.service; enabled; vendor preset: disabled)
   Active: active (running) since 五 2023-06-30 16:11:01 CST; 11s ago
     Docs: https://docs.docker.com
 Main PID: 91325 (dockerd)
    Tasks: 22
   Memory: 39.7M
   CGroup: /system.slice/docker.service
           └─91325 /usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock

6月 30 16:11:00 node001 systemd[1]: Starting Docker Application Container Engine...
6月 30 16:11:01 node001 dockerd[91325]: time="2023-06-30T16:11:01.026121388+08:00" level=info msg="Starting up"
6月 30 16:11:01 node001 dockerd[91325]: time="2023-06-30T16:11:01.093318029+08:00" level=info msg="[graphdriver] using prior storage driver: overlay2"
6月 30 16:11:01 node001 dockerd[91325]: time="2023-06-30T16:11:01.109971953+08:00" level=info msg="Loading containers: start."
6月 30 16:11:01 node001 dockerd[91325]: time="2023-06-30T16:11:01.523314196+08:00" level=info msg="Default bridge (docker0) is assigned with an IP... address"
6月 30 16:11:01 node001 dockerd[91325]: time="2023-06-30T16:11:01.696663932+08:00" level=info msg="Loading containers: done."
6月 30 16:11:01 node001 dockerd[91325]: time="2023-06-30T16:11:01.764634247+08:00" level=info msg="Docker daemon" commit=463850e graphdriver=overl...on=24.0.1
6月 30 16:11:01 node001 dockerd[91325]: time="2023-06-30T16:11:01.764890475+08:00" level=info msg="Daemon has completed initialization"
6月 30 16:11:01 node001 dockerd[91325]: time="2023-06-30T16:11:01.851761793+08:00" level=info msg="API listen on /run/docker.sock"
6月 30 16:11:01 node001 systemd[1]: Started Docker Application Container Engine.
Hint: Some lines were ellipsized, use -l to show in full.
[root@node001 ~]# docker ps
CONTAINER ID   IMAGE     COMMAND   CREATED   STATUS    PORTS     NAMES
[root@node001 ~]# docker run -d -p 5000:5000 -v /vlu001/myregistry/:/tmp/registry --privileged=true registry
cc3bf2e8380c4ff10d80fb244bb6317dc0c829c0d16e20e6b72238308f4f6e91
[root@node001 ~]# docker images
REPOSITORY                                          TAG       IMAGE ID       CREATED          SIZE
vluubuntu                                           1.2       a1ed6fe2f61e   15 minutes ago   118MB
node001:5000/vluubuntu                              1.2       a1ed6fe2f61e   15 minutes ago   118MB
ubuntu                                              1.2       7295d0d3bc7e   16 minutes ago   118MB
registry.cn-hangzhou.aliyuncs.com/vlu001/myubuntu   1.3       079bf1275a8a   5 hours ago      185MB
atguigu/ubuntu                                      3.7       7b40f602c178   18 hours ago     72.8MB
hello-world                                         <none>    9c7a54a9a43c   8 weeks ago      13.3kB
tomcat                                              latest    fb5657adc892   18 months ago    680MB
registry                                            latest    b8604a3fe854   19 months ago    26.2MB
ubuntu                                              latest    ba6acccedd29   20 months ago    72.8MB
hello-world                                         latest    feb5d9fea6a5   21 months ago    13.3kB
redis                                               6.0.8     16ecd2772934   2 years ago      104MB
[root@node001 ~]# docker push node001:5000/vluubuntu:1.2
The push refers to repository [node001:5000/vluubuntu]
3d9af5f8278d: Pushed 
9f54eef41275: Pushed 
1.2: digest: sha256:00ee8d19398c17b01d6e9a87cc051979ad17f7cd54a91e0112b10f85454899e5 size: 741
[root@node001 ~]# curl -XGET localhost:5000/v2/_catalog
{"repositories":["vluubuntu"]}
[root@node001 ~]# 

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

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

相关文章

LinkedHashMap 学习了解

一、概念 定义&#xff1a; public class LinkedHashMap<K,V> extends HashMap<K,V> implements Map<K,V> LinkedHashMap 继承 HashMap 的功能&#xff0c;增加保证了元素的有效 /*** The head (eldest) of the doubly linked list.* 双向列表&#xff0c;表…

本地axure做好的展示网站如何发布到互联网上访问?快解析端口映射

Axure 是产品经理常用的原型设计工具&#xff0c;设计的原型导出的html就是一个静态网站的文件&#xff0c;可以部署在服务器、对象存储上做成一个静态网站&#xff0c;然后通过 快解析免费域名&#xff08;或自己的独立域名&#xff09;外网访问&#xff0c;用它就可以完成从设…

WebView头部添加android原生视频播放

需求&#xff1a;我们需要做一个h5页面&#xff0c;并且可以现实加载更多&#xff0c;并且头部我们想要加一个视频播放器&#xff0c;因为h5不够丝滑。 话不多说咱们直接上代码 Xml布局&#xff1a; <?xml version"1.0" encoding"utf-8"?> <…

finalshell提示java.net.ConnectException: Connection timed out: connect

为什么超时&#xff1f; 事情是这样的&#xff0c;为了不向学校低头&#xff0c;我没有开通校园网&#xff0c;买了流量卡&#xff0c;于是每次都给电脑开热点&#xff0c;朋友叫我吃饭&#xff0c;我直接就走了&#xff0c;干完饭回来&#xff0c;在finalshell里面它提示java.…

ASEMI代理光宝光耦LTV-6341的应用与性能分析

编辑-Z 本文将全面深入地探讨光耦LTV-6341的应用与性能。首先&#xff0c;我们将介绍光耦LTV-6341的基本概念和工作原理&#xff0c;然后&#xff0c;我们将详细分析其在电子设备中的应用&#xff0c;接着&#xff0c;我们将对其性能进行深入的分析&#xff0c;最后&#xff0…

US-P1-R-S单路控制比例阀放大器

US-P1-R-S、US-P1-R-C、US-P2-R-S、US-P2-R-C、US-P1-M-C、US-P2-M-S M12插头端子号 &#xff08;US-P1-…-C&#xff09; 线缆颜色 &#xff08;US-P1-…-S&#xff09; 端子定义 &#xff08;US-P1-R&#xff09; 端子定义 &#xff08;US-P1-M&#xff09; 1 红 2 …

【零基础学习C++】如何写一个C++类?

个人主页&#xff1a;【&#x1f60a;个人主页】 系列专栏&#xff1a;【❤️系列专栏:零基础学习C】 文章目录 前言什么是类&#xff1f;&#x1f914;类的三大特性&#x1f463;定义一个类&#x1f4bb;类的实例化&#x1f52c; 前言 类是对现实生活中一类具有共同特征的事物…

第五章.­ ­ Training Versus Testing

第五章. Training Versus Testing 上一章主要介绍机器学习的可行性。由NFL定理可知&#xff0c;机器学习貌似是不可行的&#xff0c;但是随后引入了统计学知识&#xff0c;如果样本数量足够大&#xff0c;且hypothesis数量有限&#xff0c;那么机器学习一般是可行的&#xff0…

哪款是你值得拥有地图可视化开发平台

地图可视化在当今的数据分析和决策制定等领域中发挥着越来越重要的作用&#xff0c;越来越多的企业和个人开始关注和使用这一技术。而地图可视化开发平台作为地图可视化的重要工具和平台&#xff0c;其选择合适的产品对于产品效果和开发效率都具有非常重要的意义。在选择地图可…

Spring Boot中的SimpMessagingTemplate是什么,原理,以及如何使用

Spring Boot中的SimpMessagingTemplate是什么&#xff0c;原理&#xff0c;以及如何使用 SimpMessagingTemplate是Spring Framework中的一个类&#xff0c;用于向WebSocket客户端发送消息。在Spring Boot应用程序中&#xff0c;可以使用SimpMessagingTemplate来实现WebSocket通…

【GPT】中文大语言模型梳理与测评(C-Eval 、AGIEval、MMLU、SuperCLUE)

文章目录 概述申请后直接使用大模型开源可本地部署 通识数据集测评&#xff08;C-Eval 、AGIEval、MMLU、SuperCLUE&#xff09;自媒体报道SuperCLUE&#xff1a;中文通用大模型综合性基准C-Eval&#xff1a;中英测评&#xff08;清华上交提出&#xff09;当前排名&#xff08;…

Object counting——生成密度图density map

文章目录 过程代码参考 过程 首先构造一个和原始图片大小相同的矩阵&#xff0c;并将其全部置为0&#xff0c;然后将每个被标记的人头对应的位置置为1&#xff0c;这样就得到了一个只有0和1的矩阵&#xff0c;最后通过高斯核函数进行卷积得到一个连续的密度图。 代码 import…

如何对修改密码接口进行压测?终于找到解决办法了

做接口测试中&#xff0c;对于一般性的单业务接口测试很多工具可供选择&#xff0c;但是对于一些相关业务相关性的关联接口测试就比较麻烦&#xff0c;使用工具比如jmeter、postman、soapui等等就比较麻烦。我比较偏重脚本化执行测试用例&#xff0c;所以选择了groovy作为主要语…

JAVA选择题笔试:static成员与非static成员、父类子类方法的继承、接口与抽象类、final的使用

0、前言 本文针对一些java基础知识的一些考点做出解析。 1、静态成员 与 非静态成员 静态变量与静态方法都是静态成员。 先说静态变量与普通成员变量的区别&#xff0c;例如如下两个变量&#xff1a; public class Demo {public static String A "静态变量";publi…

迅镭激光高功率切割机成功交付招商重工,助推船舶行业智造升级!

近日&#xff0c;迅镭激光-招商重工高功率激光切割机交机仪式在招商局重工(江苏)有限公司顺利举行。 招商重工项目负责人佘刚林、孙宗宇&#xff0c;迅镭激光总经理助理刘富生、营销中心行业总监杨林等领导参加交付仪式&#xff0c;共同见证了这一激动人心的时刻。 本次交付的机…

日历组件 el-calendar 实现标记功能

需求&#xff1a;在日历组件中选择月份时&#xff0c;可以显示当月已经质检或需质检的数据 思路&#xff1a;前端每次点击日期选择器的时候调用接口&#xff0c;接口返回当月需要质检或已质检的数据&#xff0c;前端拿到数据就开始做判断然后回显。 大体样式 代码&#xff1a…

【每日一短语】给某人严重的惊吓

1、短语及释义 scare the pants off sb. 释义&#xff1a; 把某人的裤子吓掉&#xff1b;引申为严重的惊吓 2、示例及出处 美剧&#xff1a;《生活大爆炸》第八季第2集 The Big Bang Theory, Season 8 Episode 2 Leonard Hofstadter: I think the idea that someone could be …

【操作指南】EasyNTS上云网关如何删除日志?

EasyNTS上云网关主要包括两个部分&#xff1a;第一部分是软硬结合的EasyNTS上云网关设备。EasyNTS上云网关有单独的软件部分&#xff0c;具有拉转推功能&#xff0c;用户可集成部署在自己的硬件终端和业务系统中&#xff0c;也有软硬一体的硬件部分&#xff0c;根据需求直接配置…

CSS中伪元素详解和用法例子详解

文章目录 一、伪元素介绍二、::before和::after三、::first-line和::first-letter四、::selection五、::placeholder 一、伪元素介绍 伪元素&#xff1a;用于创建一些不在DOM树中的元素&#xff0c;并为其添加样式。 二、::before和::after ::before 伪元素可以用来创建一个…

浅谈 Android Tombstone(墓碑日志)分析步骤 - 02

tomestone 日志&#xff1a; *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** Build fingerprint: qti/trinket/trinket:11/RKQ1.211119.001/37:user/test-keys Revision: 0 ABI: arm Timestamp: 2023-06-19 23:47:310800 pid: 742, tid: 32482, name: CAM_M…