解决centos7 docker1.9 没有配置文件
来源:互联网 发布:剑三黑鹤道长捏脸数据 编辑:程序博客网 时间:2024/06/05 06:33
如果没有/etc/sysconfig/docker这个配置文件
1.vim /lib/systemd/system/docker.service
[Unit]Description=Docker Application Container EngineDocumentation=https://docs.docker.comAfter=network.target docker.socketRequires=docker.socket[Service]Type=notifyEnvironmentFile=/etc/sysconfig/dockerExecStart=/usr/bin/docker -d $OPTIONS -H fd://LimitNOFILE=1048576LimitNPROC=1048576LimitCORE=infinityMountFlags=slave[Install]WantedBy=multi-user.target
2.vim /etc/sysconfig/docker
# /etc/sysconfig/docker# Modify these options if you want to change the way the docker daemon runsOPTIONS='-H tcp://0.0.0.0:4243 -H unix:///var/run/docker.sock'DOCKER_CERT_PATH=/etc/docker# If you want to add your own registry to be used for docker search and docker# pull use the ADD_REGISTRY option to list a set of registries, each prepended# with --add-registry flag. The first registry added will be the first registry# searched.# ADD_REGISTRY='--add-registry registry.access.redhat.com'# If you want to block registries from being used, uncomment the BLOCK_REGISTRY# option and give it a set of registries, each prepended with --block-registry# flag. For example adding docker.io will stop users from downloading images# from docker.io# BLOCK_REGISTRY='--block-registry'# If you have a registry secured with https but do not have proper certs# distributed, you can tell docker to not look for full authorization by# adding the registry to the INSECURE_REGISTRY line and uncommenting it. INSECURE_REGISTRY='--insecure-registry dl.dockerpool.com:5000'# On an SELinux system, if you remove the --selinux-enabled option, you# also need to turn on the docker_transition_unconfined boolean.# setsebool -P docker_transition_unconfined 1# Location used for temporary files, such as those created by# docker load and build operations. Default is /var/lib/docker/tmp# Can be overriden by setting the following environment variable.# DOCKER_TMPDIR=/var/tmp# Controls the /etc/cron.daily/docker-logrotate cron job status.# To disable, uncomment the line below.# LOGROTATE=false
3.重启docker
systemctl daemon-reloadsystemctl restart docker
0 0
- 解决centos7 docker1.9 没有配置文件
- centos7中docker1.12的配置文件
- Centos7安装mysql5.7,解决没有默认的配置文件
- centos7使用docker1.8.2
- centos7 安装 docker1.12
- CentOS7安装docker1.9.1
- centos7 yum 安装Docker1.12
- centos7上安装docker1.12
- CentOS7安装docker1.9.1及简单使用
- 在centos7上安装docker1.12
- centos7 docker1.12安装私有仓库
- Centos7下的安装Docker1.8
- 解决spring配置文件没有提示的问题
- vim配置文件,解决没有颜色问题
- eclipse解决xml配置文件没有提示
- vim配置文件,解决没有颜色问题
- 13 - 在Centos7中安装Docker1.12(Docker系列)
- centos7.3下启用Docker1.12的restful接口
- 杭电1158 DP
- jmeter之断言
- Android 读书笔记
- C++检测键盘某键是否按下
- Python爬虫 下载 mp3、视频、zip等 这里以有声小说“凡人修仙传”为例
- 解决centos7 docker1.9 没有配置文件
- log4j.properties配置详解
- Cordova打包Android,遇到gradle下载失败的解决办法
- 插件化接入百度地图和高德地图
- JMeter 聚合报告之90% Line参数说明
- MySQL数据库总结
- ssh无密码登录
- jquery css操作 (脑子不好使了再看看)
- 集合的操作问题