Docker windows版入门
来源:http://www.tudoupe.com时间:2022-05-17
Merors登记册。
包括 Docker 守护进程 。
"registry-mirrors": [
"https://docker.mirrors.ustc.edu.cn",
"https://registry.docker-cn.com" ]
我不知道你在说什么 登记处 我不知道你在说什么 笨蛋 这是中国官方的镜子 但看起来不太好
图像和集装箱关系
图像是一面镜像,更像环境包,可以在任何多克平台上迁移和执行。
镜像壁炉应用、图书馆、资源、设置等等,是集装箱操作所必需的,并提供了一些设置环境(如匿名数量、环境变量、用户等)。
每个多集装箱(集装箱)都可以用镜子激活。
whatisa container? Simply put, a container is simply another process on your machine that has been isolated from all other processes on the host machine.
我敢肯定,有一个图片和一个容器。
切换到含有 docker 文件的根目录, 然后启动 docker 构建配置 。
-t flag tags our image. Think of this simply as a human-readable name for the final image.
we named the imagegetting-started
The.
at the end of thedocker build
command tells that Docker should look for theDockerfile
in the current directory.
下一个,启动一个容器。
tart your container using thedocker run
command and specify the name of the image we just created:
docker run -dp 3000:3000 getting-started
Remember the-d
and-p
flags? We're running the new container in "detached" mode (in the background) and creating a mapping between the host's port 3000 to the container's port 3000. Without the port mapping, we wouldn't be able to access the application.
After a few seconds, open your web browser to http://localhost:3000
此点的默认运行是一个 dockerfile, CMD 线条顺序。
相关新闻
- 2022-08-04 WPF的由来
- 2022-08-04 Win11勒索软件防护怎么打开?Win11安
- 2022-08-04 Windows系统jdk的配置
- 2022-08-04 Windows10 OneNote怎么重新登录?如何重
- 2022-08-04 超好用的 Windows 效率工具推荐
- 2022-08-04 Windows如何在CMD或PowerShell中配置代理
- 2022-08-04 powershell和cmd对比
- 2022-08-04 【QT】Windows下QT下载安装
- 2022-08-04 windows下 C++ 实现类属性的get和set方
- 2022-08-04 Win11快速助手在哪里?Win11打开快速
|
|
|
|
|
|
|
|
|
|