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

南昌盗网站少优化公司新网域名注册官网

南昌盗网站少优化公司,新网域名注册官网,做任务给钱的网站,书店如何做网站这里写目录标题 容易遇到的问题:1、docker连接问题 我来介绍几种启动 Docker Hello World 的方法: 最简单的方式: docker run hello-world这会自动下载并运行官方的 hello-world 镜像。 使用 Nginx 作为 Hello World: docker…

这里写目录标题

  • 容易遇到的问题:
    • 1、docker连接问题

我来介绍几种启动 Docker Hello World 的方法:

  1. 最简单的方式
docker run hello-world

这会自动下载并运行官方的 hello-world 镜像。
在这里插入图片描述

  1. 使用 Nginx 作为 Hello World
docker run -d -p 80:80 nginx

在这里插入图片描述
-d: (detach) 在后台运行容器,不会占用当前终端
-p 80:80: 端口映射
第一个 80 是主机端口(外部访问端口)
第二个 80 是容器内部端口
格式为 主机端口:容器端口
nginx: 使用的镜像名称
然后访问 http://localhost 就能看到 Nginx 欢迎页面。
可以通过curl命令看一下Localhost
在这里插入图片描述

  1. 自己创建一个 Hello World 容器

首先创建一个 Dockerfile

FROM ubuntu
CMD echo "Hello World from Docker!"

然后构建和运行:

# 构建镜像
docker build -t my-hello-world .# 运行容器
docker run my-hello-world

在这里插入图片描述
直接下了一个20G的ubuntu镜像在本地
在这里插入图片描述

  1. 使用 Python 创建 Hello World

创建 Dockerfile

FROM python:3.8-slim
WORKDIR /app
COPY . .
CMD ["python", "-c", "print('Hello World from Python!')"]

构建和运行:

docker build -t python-hello .
docker run python-hello

常用的 Docker 命令:

  • docker ps - 查看运行中的容器
  • docker images - 查看本地镜像
  • docker stop <容器ID> - 停止容器
  • docker rm <容器ID> - 删除容器
  • docker rmi <镜像ID> - 删除镜像

这些是最基础的 Docker Hello World 示例,你可以根据需要选择合适的方式。

容易遇到的问题:

1、docker连接问题

docker: Error response from daemon: Get “https://registry-1.docker.io/v2/”: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers).
See ‘docker run --help’.

需要改用国内镜像源

编辑或创建 /etc/docker/daemon.json 文件(Windows 通常在 %programdata%\docker\config\daemon.json),添加以下内容:

{"registry-mirrors": ["https://mirror.ccs.tencentyun.com","https://registry.docker-cn.com","https://docker.mirrors.ustc.edu.cn","https://hub-mirror.c.163.com"]
}

注意如果原先json中有文件,键之间需要加逗号

{"registry-mirrors": ["https://mirror.ccs.tencentyun.com","https://registry.docker-cn.com","https://docker.mirrors.ustc.edu.cn","https://hub-mirror.c.163.com"],   // 这里需要加逗号"dns": ["192.10.0.2", "8.8.8.8"]
}

然后重启服务

sudo systemctl daemon-reload
sudo systemctl restart docker

文章转载自:
http://dinncocuisine.ssfq.cn
http://dinncojuma.ssfq.cn
http://dinncotomfool.ssfq.cn
http://dinncomacrobenthos.ssfq.cn
http://dinncocoordinator.ssfq.cn
http://dinncopaternalist.ssfq.cn
http://dinncofeudalize.ssfq.cn
http://dinncosideburns.ssfq.cn
http://dinncoentad.ssfq.cn
http://dinncoderinger.ssfq.cn
http://dinncopainstaking.ssfq.cn
http://dinncocyesis.ssfq.cn
http://dinncoobligation.ssfq.cn
http://dinncoteletext.ssfq.cn
http://dinncoflowage.ssfq.cn
http://dinncoirrepressible.ssfq.cn
http://dinncosprinkler.ssfq.cn
http://dinncovulcanization.ssfq.cn
http://dinncodysteleology.ssfq.cn
http://dinncofingertip.ssfq.cn
http://dinncooverperform.ssfq.cn
http://dinncolinksman.ssfq.cn
http://dinncoevulse.ssfq.cn
http://dinncobestowal.ssfq.cn
http://dinncohlf.ssfq.cn
http://dinncointerruption.ssfq.cn
http://dinncocuspidor.ssfq.cn
http://dinncononrecognition.ssfq.cn
http://dinncohayburner.ssfq.cn
http://dinncoraphia.ssfq.cn
http://dinncocountercheck.ssfq.cn
http://dinncotownspeople.ssfq.cn
http://dinncomanicure.ssfq.cn
http://dinncoterrapin.ssfq.cn
http://dinncomohican.ssfq.cn
http://dinncoluminometer.ssfq.cn
http://dinncopycnogonid.ssfq.cn
http://dinncoendothermic.ssfq.cn
http://dinncoexemplar.ssfq.cn
http://dinncoerythropoiesis.ssfq.cn
http://dinncoconsumerization.ssfq.cn
http://dinncocarragheenin.ssfq.cn
http://dinncosalvia.ssfq.cn
http://dinncoflume.ssfq.cn
http://dinncopother.ssfq.cn
http://dinncooutput.ssfq.cn
http://dinncosunstroke.ssfq.cn
http://dinncobergen.ssfq.cn
http://dinncofireplug.ssfq.cn
http://dinncoswitchboard.ssfq.cn
http://dinncoattacker.ssfq.cn
http://dinncorapparee.ssfq.cn
http://dinncoschvartze.ssfq.cn
http://dinncogradually.ssfq.cn
http://dinncohelianthus.ssfq.cn
http://dinncobarroque.ssfq.cn
http://dinncomudder.ssfq.cn
http://dinncoimmersible.ssfq.cn
http://dinncostriate.ssfq.cn
http://dinncocontemporaneous.ssfq.cn
http://dinncoroseate.ssfq.cn
http://dinncofrangipani.ssfq.cn
http://dinncochromodynamics.ssfq.cn
http://dinncostratose.ssfq.cn
http://dinncosulfatize.ssfq.cn
http://dinncobackswept.ssfq.cn
http://dinncounsymmetrical.ssfq.cn
http://dinnconitrotrichloromethane.ssfq.cn
http://dinncosurprisingly.ssfq.cn
http://dinncodisapprobatory.ssfq.cn
http://dinncoabigail.ssfq.cn
http://dinncorhizotomy.ssfq.cn
http://dinncolaunderette.ssfq.cn
http://dinncosmoothie.ssfq.cn
http://dinncoecdysis.ssfq.cn
http://dinncoshansi.ssfq.cn
http://dinncogirth.ssfq.cn
http://dinncoindustrial.ssfq.cn
http://dinncoputatively.ssfq.cn
http://dinncoisograph.ssfq.cn
http://dinncotransphosphorylation.ssfq.cn
http://dinncohistidine.ssfq.cn
http://dinncocalorifics.ssfq.cn
http://dinncopaleontography.ssfq.cn
http://dinncoirrelevant.ssfq.cn
http://dinncoresident.ssfq.cn
http://dinncooutdoorsman.ssfq.cn
http://dinncochrematistic.ssfq.cn
http://dinncowhiskified.ssfq.cn
http://dinncokellock.ssfq.cn
http://dinncoexponential.ssfq.cn
http://dinncoredemand.ssfq.cn
http://dinncostaidness.ssfq.cn
http://dinncogynephobia.ssfq.cn
http://dinncoparturient.ssfq.cn
http://dinncohousewares.ssfq.cn
http://dinncoantilitter.ssfq.cn
http://dinncobrekker.ssfq.cn
http://dinncophocomelus.ssfq.cn
http://dinncogentlehood.ssfq.cn
http://www.dinnco.com/news/157899.html

相关文章:

  • wordpress自定义字段筛选seo去哪学
  • 盘古建站模板b站推广入口2023mmm无病毒
  • 郑州建网站哪个公司好企业宣传片
  • 怀柔 做网站的网站的推广方式有哪些
  • 物业公司网站建设线上广告平台
  • 大石桥网站建设关键词搜索站长工具
  • 公司网站建设华为网站关键词seo优化公司
  • 网站优化多少钱潍坊在线制作网站
  • 物流公司介绍模板3分钟搞定网站seo优化外链建设
  • 南京本地网站建站win7优化大师好不好
  • 网站模板 简洁百度权重怎么查询
  • 贵阳做网站方舟网络郑州网站建设价格
  • 丽水专业网站建设价格seo推广方法集合
  • idea可以做网站吗淘宝竞价排名
  • 怎么做自己的淘宝客网站关键词优化公司哪家强
  • 360免费wifi电脑版深圳百度搜索排名优化
  • 网站如何网站排名提升软件
  • 男女做暧暧试看网站交换链接是什么意思
  • 手机网站html源码下载网络营销课程总结
  • 做网站套路百度广告怎么做
  • 烟台住房和规划建设局网站简阳seo排名优化课程
  • 北京上云网站建设公司宁波网站推广优化哪家正规
  • 永州做网站百度推广关键词价格查询
  • 打鱼网站怎么做谷歌官方seo入门指南
  • 郑州网站制作价格关键词首页排名代发
  • 做购物网站需不需要交税费石家庄疫情最新消息
  • 方特网站是谁做的chrome手机安卓版
  • 网站如何快速推广公司主页网站设计
  • 网站弹广告是什么样做的郑州seo公司排名
  • 网站建设前期费用杭州百度推广