当前位置: 首页 > news >正文

在哪做网站不要钱被百度收录的网站有哪些

在哪做网站不要钱,被百度收录的网站有哪些,tornado 网站开发,卫计局本年度网站建设工作总结目录 Docker镜像制作 搭建私服 将本地镜像推送到私有库 Docker镜像制作 以创建一个新ubuntu镜像#xff0c;并安装vim命令示例 运行一个ubuntu镜像#xff0c;发现在镜像里面无法使用vim命令#xff0c;因为该ubuntu镜像只包括了其最基本的内核命令 [rootlocalhost ~]…目录 Docker镜像制作 搭建私服 将本地镜像推送到私有库 Docker镜像制作 以创建一个新ubuntu镜像并安装vim命令示例 运行一个ubuntu镜像发现在镜像里面无法使用vim命令因为该ubuntu镜像只包括了其最基本的内核命令 [rootlocalhost ~]# docker images REPOSITORY TAG IMAGE ID CREATED SIZE ubuntu latest ba6acccedd29 2 years ago 72.8MB [rootlocalhost ~]# docker run -it ba6acccedd29 /bin/bash rootf1e088df465f:/# vim a.txt bash: vim: command not found给ubuntu容器安装vim rootf1e088df465f:/# apt-get update rootf1e088df465f:/# apt-get -y install vim 安装完成之后就可以在容器里面使用vim编辑器进行文件的编辑了 rootf1e088df465f:/# vim a.txt rootf1e088df465f:/# 将这个运行的容器制作成一个带有vim功能的ubuntu镜像 docker commit -m提交的描述信息 -a作者 容器ID 要创建的目标镜像名:[标签名] [rootlocalhost ~]# docker commit -madd vim -amgaw f1e088df465f linux1:1.00001 sha256:6eb1515df77a8a00c6ae3ff5c541f26a50fd585a4b67d321280612cef1f852e1查看镜像发现比原镜像大了很多 [rootlocalhost ~]# docker images REPOSITORY TAG IMAGE ID CREATED SIZE linux1 1.00001 6eb1515df77a 31 seconds ago 189MB ubuntu latest ba6acccedd29 2 years ago 72.8MB运行自己制作的镜像 [rootlocalhost ~]# docker run -it 6eb1515df77a /bin/bash rootcc4ba90ce5d4:/# vim a.txt rootcc4ba90ce5d4:/# 发现确实带有vim功能了 搭建私服 下载镜像Docker Registry [rootlocalhost ~]# docker pull registry运行私服库Registry相当于本地的私有Docker hub [rootlocalhost ~]# docker run -d -p 5000:5000 -v /mgaw/myregistry/:/tmp/registry --privilegedtrue registry 18d989f67ba7cab18d1654227bfb8aa4350d19b3e2d9f912302f1b19bc7d852e将本地镜像推送到私有库 以创建一个新ubuntu镜像并安装ifconfig命令示例 运行一个ubuntu镜像发现在镜像里面无法使用ifconfig命令因为该ubuntu镜像只包括了其最基本的内核命令 [rootlocalhost ~]# docker images REPOSITORY TAG IMAGE ID CREATED SIZE ubuntu latest ba6acccedd29 2 years ago 72.8MB [rootlocalhost ~]# docker run -it ba6acccedd29 /bin/bash root32766e3fc651:/# ifconfig bash: ifconfig: command not found给ubuntu容器安装ifconfig root32766e3fc651:/# apt-get update root32766e3fc651:/# apt-get install net-tools root32766e3fc651:/# ifconfig eth0: flags4163UP,BROADCAST,RUNNING,MULTICAST mtu 1500inet 172.17.0.7 netmask 255.255.0.0 broadcast 172.17.255.255ether 02:42:ac:11:00:07 txqueuelen 0 (Ethernet)RX packets 9126 bytes 30122477 (30.1 MB)RX errors 0 dropped 0 overruns 0 frame 0TX packets 7207 bytes 395192 (395.1 KB)TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0lo: flags73UP,LOOPBACK,RUNNING mtu 65536inet 127.0.0.1 netmask 255.0.0.0loop txqueuelen 1000 (Local Loopback)RX packets 0 bytes 0 (0.0 B)RX errors 0 dropped 0 overruns 0 frame 0TX packets 0 bytes 0 (0.0 B)TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 将这个运行的容器制作成一个带有ifconfig功能的ubuntu镜像 [rootlocalhost ~]# docker commit -mifconfig -amgaw 32766e3fc651 ubuntu1:1.00002 sha256:120ca7640729ad7ca74912b3ca8f9f0dceedf7a798e39b59d122652907dd3a0e查看镜像发现比原镜像大了很多 [rootlocalhost ~]# docker images REPOSITORY TAG IMAGE ID CREATED SIZE ubuntu1 1.00002 120ca7640729 47 seconds ago 122MB ubuntu latest ba6acccedd29 2 years ago 72.8MB使用 curl 工具验证私服库上有什么镜像 [rootlocalhost ~]# curl -XGET http://192.168.117.131:5000/v2/_catalog {repositories:[]}目前私服库没有镜像上传过 将新镜像 ubuntu1:1.00002 修改符合私服规范的 Tag 命令格式 docker tag 镜像:Tag Host:Port/Repository:Tag [rootlocalhost ~]# docker tag ubuntu1:1.00002 192.168.117.131:5000/ubuntu1:1.00002查看修改后的镜像 [rootlocalhost ~]# docker images REPOSITORY TAG IMAGE ID CREATED SIZE ubuntu1 1.00002 120ca7640729 5 minutes ago 122MB 192.168.117.131:5000/ubuntu1 1.00002 120ca7640729 5 minutes ago 122MB ubuntu latest ba6acccedd29 2 years ago 72.8MB修改 docker 配置文件使之支持 http vim /etc/docker/daemon.json 新增如下内容 insecure-registries: [192.168.117.131:5000] 最后的结果如下 重新启动docker并保证linux防火墙没有对5000端口拦截 [rootlocalhost ~]# systemctl restart docker由于重新启动了docker需要重新启动 docker registry 容器 [rootlocalhost ~]# docker run -d -p 5000:5000 -v /mgaw/myregistry/:/tmp/registry --privilegedtrue registry bbef35a7bd2f80525932769666c320751565f7f01bf095f30bbfe30fc219b564推送镜像到私服 [rootlocalhost ~]# docker push 192.168.117.131:5000/ubuntu1:1.00002 The push refers to repository [192.168.117.131:5000/ubuntu1] 48d7d917047c: Pushed 9f54eef41275: Pushed 1.00002: digest: sha256:94872dd08e5e7d4c5921cb3581f8e01631f85a81a34e9dea83a28212ffb48593 size: 741 查看私服库上是否存在镜像 [rootlocalhost ~]# curl -XGET http://192.168.117.131:5000/v2/_catalog {repositories:[ubuntu1]}从私服上拉取镜像 [rootlocalhost ~]# docker pull 192.168.117.131:5000/ubuntu1:1.00002 1.00002: Pulling from ubuntu1 Digest: sha256:94872dd08e5e7d4c5921cb3581f8e01631f85a81a34e9dea83a28212ffb48593 Status: Image is up to date for 192.168.117.131:5000/ubuntu1:1.00002 192.168.117.131:5000/ubuntu1:1.00002删除192.168.117.131:5000/ubuntu1镜像 [rootlocalhost ~]# docker rmi -f 120ca7640729 [rootlocalhost ~]# docker images REPOSITORY TAG IMAGE ID CREATED SIZE linux1 1.00001 6eb1515df77a 48 minutes ago 189MB ubuntu latest ba6acccedd29 2 years ago 72.8MB [rootlocalhost ~]# docker pull 192.168.117.131:5000/ubuntu1:1.00002 1.00002: Pulling from ubuntu1 7b1a6ab2e44d: Already exists 0981e371e319: Pull complete Digest: sha256:94872dd08e5e7d4c5921cb3581f8e01631f85a81a34e9dea83a28212ffb48593 Status: Downloaded newer image for 192.168.117.131:5000/ubuntu1:1.00002 192.168.117.131:5000/ubuntu1:1.00002再次查看镜像发现镜像成功拉取下来了 [rootlocalhost ~]# docker images REPOSITORY TAG IMAGE ID CREATED SIZE 192.168.117.131:5000/ubuntu1 1.00002 120ca7640729 19 minutes ago 122MB linux1 1.00001 6eb1515df77a 49 minutes ago 189MB ubuntu latest ba6acccedd29 2 years ago 72.8MB至此将本地镜像推送到私有库完成
http://www.w-s-a.com/news/898743/

相关文章:

  • 个人摄影网站推介网手机版
  • 有哪些免费的视频网站网站开发和竞价
  • 学校网站如何做广州商城型网站建设
  • 微网站建设哪家便宜易优建站系统
  • 推荐做木工的视频网站毕业设计做的网站抄袭
  • 网站导航页面制作wordpress调用文章阅读量
  • app小程序网站开发品牌购物网站十大排名
  • 用wordpress做购物网站龙岩品牌设计
  • 网站开发是指wordpress系统在线升级
  • 网站建设运营的灵魂是什么意思页面跳转中
  • 家政服务网站源码重庆建网站企业有哪些
  • 怎样分析一个网站做的好坏重庆长寿网站设计公司哪家专业
  • 百度助手app下载苏州seo关键词优化排名
  • 17网站一起做 佛山诸城网站建设多少钱
  • 郑州网站建设培训学校泉州做网站设计公司
  • 西峡做网站深圳建筑工务署官网
  • 单县网站惠州seo计费
  • 万网网站建设 优帮云怎样用记事本做网站
  • 注册域名后网站建设百度指数的功能
  • 怎么做伪静态网站山西网站建设设计
  • 做小型企业网站多少钱衡阳市建设局网站
  • 金华专业网站建设公司网站建设空间和服务器方式
  • 自己做的网站在浏览器上显示不安全吗wordpress revolution slider
  • 西安网站建设推广优化搜索引擎营销
  • 互联网站备案管理工作方案 工信部注册深圳公司需要什么条件
  • 网站网站服务器网站建设 物流
  • 国外开发网站手机网站建设制作
  • 怎么把自己做的网站传网上青岛工程建设监理公司网站
  • 网站301跳转效果商丘网站公司
  • 公司网站建设西安网站的架构与建设