MAC中配置Docker镜像源
进入设置(setting)中的Docker Engine
编辑:
{
"builder": {
"gc": {
"defaultKeepStorage": "20GB",
"enabled": true
}
},
"experimental": false,
"registry-mirrors": [
"https://hub.dk18.xyz"
]
}
应用并重启(Apple & Restart)
退出Docker,从新启动MAC电脑,使用docker pull命令下载镜像即可,速度很快!
应用并重启(Apple & Restart)
退出Docker,从新启动MAC电脑,使用docker pull命令下载镜像即可,速度很快!
命令行中运行命令,查看当前镜像源:
docker info | grep "Registry Mirrors" -A 5
---------------------------------------------------------------------
docker info | grep "Registry Mirrors" -A 5
---------------------------------------------------------------------
false后面要加英文逗号,其实是在原有配置文件中增加三行代码:
"registry-mirrors": [
]
=======================================
=======================================
Docker中搭建apache服务:
docker pull httpd
docker run -d --name my-apache -p 8080:80 httpd
浏览器中访问:
http://127.0.0.1:8080/
可查看到「
http://127.0.0.1:8080/
可查看到「
It works!
」则表示docker中的apache容器已成功创建!
=======================================
《本地搭建IPTV镜像源》
IPTV本地Docker镜像拉取命令:
docker镜像拉取: docker pull doubebly/doube-itv:latest
启动docker中的相关镜像后,浏览器访问:
http://localhost:5088/help
查看直播镜像的地址,并把地址通过VLC播放器中的File / Open Network 打开
《本地搭建IPTV镜像源》
IPTV本地Docker镜像拉取命令:
docker镜像拉取: docker pull doubebly/doube-itv:latest
启动docker中的相关镜像后,浏览器访问:
http://localhost:5088/help
查看直播镜像的地址,并把地址通过VLC播放器中的File / Open Network 打开
评论
发表评论