一定要给windows先创建软连接,不然系统盘会爆表的:

mklink /j .docker D:\Administrator\.docker

Win7安装Docker

Dockerfile

# FROM docker.tidebuy.net/dotnet/core/sdk:3.1 AS tools-install
# #RUN dotnet tool install --tool-path /dotnetcore-tools dotnet-trace
# RUN dotnet tool install --tool-path /dotnetcore-tools dotnet-dump
# #RUN dotnet tool install --tool-path /dotnetcore-tools dotnet-counters FROM docker.tidebuy.net/dotnet/core/aspnet:3.1
WORKDIR /app COPY .ci/comic.ttf /usr/share/fonts/comic.ttf
COPY .ci/sources.list /etc/apt/sources.list
# COPY --from=tools-install /dotnetcore-tools /opt/dotnetcore-tools
# ENV PATH="/opt/dotnetcore-tools:${PATH}" RUN sed -i 's/TLSv1.2/TLSv1.0/g' /etc/ssl/openssl.cnf && \
apt-get update && \
apt-get install -y libgdiplus libc6-dev && \
ln -s /usr/lib/libgdiplus.so /usr/lib/gdiplus.dll && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* ARG APP_PATH
ARG MAIN_DLL
ARG PORT COPY ${APP_PATH} .
ENV MAIN_DLL=${MAIN_DLL} EXPOSE ${PORT} ENTRYPOINT ["sh", "-c","/usr/bin/dotnet /app/$MAIN_DLL"]

Windows7安装 docker-compose的过程

Install Docker Compose(官网)

https://github.com/feizeikesi/DotNetForDocker

https://github.com/jia237377144/DotNetForDocker

docker-compose.yml

# Please refer https://aka.ms/HTTPSinContainer on how to setup an https developer certificate for your ASP .NET Core service.
version: '3.4' services:
jlp_web:
image: jlp_web:1.0
build:
context: .
dockerfile: docker/Dockerfile
ports:
- 5000:7777
depends_on:
- jlp_db
networks:
- web
jlp_db:
image: mysql:5.7
networks:
- web
ports:
- 33306:3306
environment:
MYSQL_ROOT_PASSWORD: 123456
MYSQL_USER: admin
MYSQL_PASSWORD: 123456
MYSQL_DATABASE: dockerweb
restart: always
volumes:
- "./db/data:/var/lib/mysql"
- "./db/config:/etc/mysql/conf.d"
- "./sql:/docker-entrypoint-initdb.d"
networks:
web:
external: true

C:\Users\Administrator\.docker 目录下面添加daemon.json文件

daemon.json文件
{
"registry-mirrors" : [ "https://hub-mirror.c.163.com" ],
"insecure-registries" : [ "192.168.0.112:18080" ]
}

Windows安装Docker & Docker-Compose & 配置docker私有仓库的更多相关文章

  1. Docker以http访问Harbor私有仓库(一)

    1 说明 前文Centos7搭建Harbor私有仓库(一)我们成功搭建Harbor,本篇我们主要配置Docker以http方式访问私有仓库 2 Docker配置 2.1 Mac系统 2.1.1 配置D ...

  2. Jenkins打Docker镜像推送到私有仓库

    Jenkins打Docker镜像推送到私有仓库 因为我的Jenkins是安装在群晖NAS中的docker,所以我这边就以Docker安装Jenkins为例 echo '================ ...

  3. Docker容器之搭建本地私有仓库

    Docker容器之搭建本地私有仓库 本地私有仓库搭建的具体步骤 首先下载 registry 镜像 docker pull registry 在 daemon.json 文件中添加私有镜像仓库的地址并重 ...

  4. 使用Nexus配置Maven私有仓库

    使用Nexus配置Maven私有仓库 作者:尹正杰 版权声明:原创作品,谢绝转载!否则将追究法律责任. 一.安装配置Nexus 1>.下载nexus 下载地址:https://www.sonat ...

  5. docker使用registry搭建本地私有仓库

    参考链接来自:http://blog.csdn.net/wangtaoking1/article/details/44180901/ 和Mavan的管理一样,Dockers不仅提供了一个中央仓库,同时 ...

  6. Docker以https访问Harbor私有仓库(二)

    1 说明 前文Centos7搭建Harbor私有仓库(二)中,我们以https方式搭建了Harbor,本篇我们主要配置Docker以https方式访问Harbor私有仓库 2 Docker配置 2.1 ...

  7. docker推送镜像到私有仓库

    配置私有仓库源 私有仓库地址:registry.supos.ai 修改/etc/docker/daemon.json文件,增加insecure-registries,如下所示: { "ins ...

  8. 【原创】运维基础之Docker(3)搭建私有仓库

    下载并启动registry $ docker pull registry$ docker run --name my_registry -d -p 5000:5000 -v /var/lib/regi ...

  9. Docker——Registry 通过Shell管理私有仓库镜像

    使用方法: 复制代码保存为 image_registry.sh sh image_registry.sh  -h   #查看帮助 HUB=10.0.29.104:5000 改为自己的地址 #!/bin ...

  10. 解决:Windows安装Composer及全局配置时提示部分.dll结尾的php扩展文件找不到指定的模板

    当安装Composer或者全局配置时出现.dll扩展文件找不到指定模板,如下图: 解决办法: 打开php.ini,将extension_dir 改为绝对路径即可 例如:

随机推荐

  1. 爱了,字节跳动大神最佳整理:582页Android NDK七大模块学习宝典,理论与实践

    前言 时至今日,短视频App可谓是如日中天,一片兴兴向荣.随着短视频的兴起,音视频开发也越来越受到重视,而且薪资水涨船高,以一线城市为例,音视频工程开发的薪资比Android应用层开发高出40%. 但 ...

  2. 一、Ocelot简单概述

    以下只是本人学习过程的整理 Ocelot官网:http://threemammals.com/ocelot 说明文档:https://ocelot.readthedocs.io/en/latest/ ...

  3. 05.表达式目录树Expression

    参考文章 https://www.cnblogs.com/xyh9039/p/12748983.html 1. 基本了解 1.1 Lambda表达式 演变过程 using System; namesp ...

  4. 多线程案例:龟兔赛跑-Race

    多线程案例:龟兔赛跑-Race 前置条件: 首先来个赛道距离,然后要离终点越来越近 判断比赛是否结束 打印出胜利者 龟兔赛跑开始 故事中是乌龟赢了,兔子需要睡觉,所以我们来模拟兔子睡觉 乌龟赢得比赛 ...

  5. const变量通过指针修改问题

    const的变量在特定情况下可以通过指针修改,但是在另一些情况下是不能通过指针修改. 以下是VC6下才测试. 1. 不能修改的情况 #include int const a = 10; void ma ...

  6. VLAN-5 利用三层交换机实现vlan间的路由

    一.实验拓扑图 二.实验编址 三.实验步骤 1.给对应的PC设置对应的IP和掩码还有接口,以及根据需要划分不同的vlan区域,再用文本标记出不同部门. 2.启动设备(全选) 3.首先用ping命令检查 ...

  7. 支持初始化数据的Zookeeper Docker镜像

    最近在做一个演示项目 https://github.com/cnscud/cavedemo, 自然为了方便, 也做了docker打包, 发现zookeeper的镜像没有导入初始化数据的功能, 于是自己 ...

  8. C# KeyValuePair<TKey,TValue> 与 Dictionary<TKey,TValue> 区别

    KeyValuePair<TKey,TValue> 可以设置.查询的一对键值 是struct Dictionary<TKey,TValue> 可以设置.查询的多对键值的集合 总 ...

  9. mfc HackerTools释放资源

    作用: 在VC环境中除了我们所常用的Dialog.Menu和Bitmap等标准资源类型之外,它还支持自定义资源类型(Custom Resource),我们自定义的资源类型能做些什么呢?呵呵,用处多多. ...

  10. vue-bluJavascript - Vue - 插件(swiper、vue-preview)

    swiper swiper是一个支持滑动效果的js插件,它也支持在vue中使用,主要用于移动端的触摸滑动操作.Swiper中文网. 安装和导入插件 npm i vue-awesome-swiper - ...