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

静海网站建设公司做好的网站怎么优化

静海网站建设公司,做好的网站怎么优化,想做网站的公司,个人简历表docker实战(一):centos7 yum安装docker docker实战(二):基础命令篇 docker实战(三):docker网络模式(超详细) docker实战(四):docker架构原理 docker实战(五):docker镜像及仓库配置 docker实战(六):docker 网络及数据卷设置 docker实战(七):docker 性质及版本选择 认知升…

docker实战(一):centos7 yum安装docker

docker实战(二):基础命令篇

docker实战(三):docker网络模式(超详细)

docker实战(四):docker架构原理

docker实战(五):docker镜像及仓库配置

docker实战(六):docker 网络及数据卷设置

docker实战(七):docker 性质及版本选择

认知升维: 道、法、术、器、势


一:  配置docker日志文件

通过​​/etc/docker/daemon.json​​​配置Docker的​​log-driver​​参数,遇到了Docker无法启动的错误。


配置信息如下:

[root@www ~]# cat /etc/docker/daemon.json 
{
    "registry-mirrors": [
        "https://d8b3zdiw.mirror.aliyuncs.com",
        "https://reg-mirror.qiniu.com/",
        "https://hub-mirror.c.163.com/",
        "https://docker.mirrors.ustc.edu.cn/"
    ],
    "log-driver": "json-file",
    "log-opts": {
        "max-size": "50m",
        "max-file": "5"
    }
     
}

查看日志: journalctl -amu docker 

错误信息:

dockerd-current[3335]: unable to configure the Docker daemon with file /etc/docker/daemon.json: the following directives are specified both as a flag and in the configuration file: graph: (from flag: /data/docker
8月 18 12:02:09 www.yhchange.com systemd[1]: docker.service: main process exited, code=exited, status=1/FAILURE
8月 18 12:02:09 www.yhchange.com systemd[1]: Failed to start Docker Application Container Engine.
8月 18 12:02:09 www.yhchange.com systemd[1]: Unit docker.service entered failed state.
8月 18 12:02:09 www.yhchange.com systemd[1]: docker.service failed.
8月 18 12:05:49 www.yhchange.com systemd[1]: Starting Docker Application Container Engine...
8月 18 12:05:49 www.yhchange.com dockerd-current[3446]: unable to configure the Docker daemon with file /etc/docker/daemon.json: the following directives don't match any configuration option: data-root
8月 18 12:05:49 www.yhchange.com systemd[1]: docker.service: main process exited, code=exited, status=1/FAILURE
8月 18 12:05:49 www.yhchange.com systemd[1]: Failed to start Docker Application Container Engine.
8月 18 12:05:49 www.yhchange.com systemd[1]: Unit docker.service entered failed state.
8月 18 12:05:49 www.yhchange.com systemd[1]: docker.service failed.


这个含义应该是Docker启动的时候传入了命令行参数,同时也指定了配置文件,两个配置发生了冲突。那么就查看一下Docker服务启动文件。
 

二: 可以看到启动的时候会加载EnvironmentFile=-/etc/sysconfig/docker 配置文件

[root@www ~]# cat /usr/lib/systemd/system/docker.service 
[Unit]
Description=Docker Application Container Engine
Documentation=http://docs.docker.com
After=network.target
Wants=docker-storage-setup.service
Requires=docker-cleanup.timer

[Service]
Type=notify
NotifyAccess=main
EnvironmentFile=-/run/containers/registries.conf
EnvironmentFile=-/etc/sysconfig/docker
EnvironmentFile=-/etc/sysconfig/docker-storage
EnvironmentFile=-/etc/sysconfig/docker-network
Environment=GOTRACEBACK=crash
Environment=DOCKER_HTTP_HOST_COMPAT=1
Environment=PATH=/usr/libexec/docker:/usr/bin:/usr/sbin
ExecStart=/usr/bin/dockerd-current --graph /data/docker_data \
          --add-runtime docker-runc=/usr/libexec/docker/docker-runc-current \
          --default-runtime=docker-runc \
          --exec-opt native.cgroupdriver=systemd \
          --userland-proxy-path=/usr/libexec/docker/docker-proxy-current \
          --init-path=/usr/libexec/docker/docker-init-current \
          --seccomp-profile=/etc/docker/seccomp.json \
          $OPTIONS \
          $DOCKER_STORAGE_OPTIONS \
          $DOCKER_NETWORK_OPTIONS \
          $ADD_REGISTRY \
          $BLOCK_REGISTRY \
          $INSECURE_REGISTRY \
      $REGISTRIES
ExecReload=/bin/kill -s HUP $MAINPID
LimitNOFILE=1048576
LimitNPROC=1048576
LimitCORE=infinity
TimeoutStartSec=0
Restart=on-abnormal
KillMode=process

[Install]
WantedBy=multi-user.target


看下配置文件信息:

cat  /etc/sysconfig/docker

# /etc/sysconfig/docker

# Modify these options if you want to change the way the docker daemon runs
OPTIONS='--selinux-enabled --log-driver=journald --signature-verification=false'
if [ -z "${DOCKER_CERT_PATH}" ]; then
    DOCKER_CERT_PATH=/etc/docker
fi

# Do not add registries in this file anymore. Use /etc/containers/registries.conf
# instead. For more information reference the registries.conf(5) man page.

# 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

# docker-latest daemon can be used by starting the docker-latest unitfile.
# To use docker-latest client, uncomment below lines
#DOCKERBINARY=/usr/bin/docker-latest
#DOCKERDBINARY=/usr/bin/dockerd-latest
#DOCKER_CONTAINERD_BINARY=/usr/bin/docker-containerd-latest
#DOCKER_CONTAINERD_SHIM_BINARY=/usr/bin/docker-containerd-shim-latest
 

 三: 去掉配置文件中: --log-driver=journald

 重新启动:
 

[root@www ~]# systemctl daemon-reload
[root@www ~]# systemctl restart docker
[root@www ~]# systemctl status docker
docker.service - Docker Application Container Engine
   Loaded: loaded (/usr/lib/systemd/system/docker.service; enabled; vendor preset: disabled)
   Active: active (running) since 日 2023-08-20 11:38:00 CST; 9s ago
     Docs: http://docs.docker.com
 Main PID: 2160 (dockerd-current)
    Tasks: 32
   CGroup: /system.slice/docker.service
           ├─2160 /usr/bin/dockerd-current --graph /data/docker_data --add-runtime docker-runc=/usr/libexec/docker/docker-runc-current --default-runtime=docker-runc --exec-opt native.cgroupdriver=systemd --userland-proxy-path=/usr/libexec/doc...
           └─2171 /usr/bin/docker-containerd-current -l unix:///var/run/docker/libcontainerd/docker-containerd.sock --metrics-interval=0 --start-timeout 2m --state-dir /var/run/docker/libcontainerd/containerd --shim docker-containerd-shim --r...

8月 20 11:37:59 www.yhchange.com dockerd-current[2160]: time="2023-08-20T11:37:59.491453685+08:00" level=info msg="libcontainerd: new containerd process, pid: 2171"
8月 20 11:38:00 www.yhchange.com dockerd-current[2160]: time="2023-08-20T11:38:00.615692314+08:00" level=info msg="Graph migration to content-addressability took 0.00 seconds"
8月 20 11:38:00 www.yhchange.com dockerd-current[2160]: time="2023-08-20T11:38:00.617335438+08:00" level=info msg="Loading containers: start."
8月 20 11:38:00 www.yhchange.com dockerd-current[2160]: time="2023-08-20T11:38:00.644238265+08:00" level=info msg="Firewalld running: false"
8月 20 11:38:00 www.yhchange.com dockerd-current[2160]: time="2023-08-20T11:38:00.829163222+08:00" level=info msg="Default bridge (docker0) is assigned with an IP address 172.17.0.0/16. Daemon option --bip can be used to set ...rred IP address"
8月 20 11:38:00 www.yhchange.com dockerd-current[2160]: time="2023-08-20T11:38:00.883382659+08:00" level=info msg="Loading containers: done."
8月 20 11:38:00 www.yhchange.com dockerd-current[2160]: time="2023-08-20T11:38:00.937997301+08:00" level=info msg="Daemon has completed initialization"
8月 20 11:38:00 www.yhchange.com dockerd-current[2160]: time="2023-08-20T11:38:00.938173411+08:00" level=info msg="Docker daemon" commit="7d71120/1.13.1" graphdriver=overlay2 version=1.13.1
8月 20 11:38:00 www.yhchange.com dockerd-current[2160]: time="2023-08-20T11:38:00.954810143+08:00" level=info msg="API listen on /var/run/docker.sock"
8月 20 11:38:00 www.yhchange.com systemd[1]: Started Docker Application Container Engine.
Hint: Some lines were ellipsized, use -l to show in full.
 


 


文章转载自:
http://dinncolargen.wbqt.cn
http://dinncosingsong.wbqt.cn
http://dinncowga.wbqt.cn
http://dinncotagger.wbqt.cn
http://dinncogladly.wbqt.cn
http://dinncospicous.wbqt.cn
http://dinncomixage.wbqt.cn
http://dinncoslam.wbqt.cn
http://dinncoahull.wbqt.cn
http://dinncodauphin.wbqt.cn
http://dinncoconstellation.wbqt.cn
http://dinncoprismy.wbqt.cn
http://dinncosouthwardly.wbqt.cn
http://dinncoins.wbqt.cn
http://dinncoaccommodate.wbqt.cn
http://dinncohepatica.wbqt.cn
http://dinncocoelenterate.wbqt.cn
http://dinncoupthrust.wbqt.cn
http://dinncohomoousian.wbqt.cn
http://dinncokiloton.wbqt.cn
http://dinncogumban.wbqt.cn
http://dinncoretiform.wbqt.cn
http://dinncounblest.wbqt.cn
http://dinncoantechapel.wbqt.cn
http://dinncobarefooted.wbqt.cn
http://dinncounspilt.wbqt.cn
http://dinncosansevieria.wbqt.cn
http://dinncofearfulness.wbqt.cn
http://dinncopostpituitary.wbqt.cn
http://dinncoquietistic.wbqt.cn
http://dinncounderbite.wbqt.cn
http://dinncoytterbium.wbqt.cn
http://dinncobotchy.wbqt.cn
http://dinncolansdowne.wbqt.cn
http://dinncomoviola.wbqt.cn
http://dinncohorseplay.wbqt.cn
http://dinncodisrepute.wbqt.cn
http://dinncocutout.wbqt.cn
http://dinncoscranton.wbqt.cn
http://dinnconumeroscope.wbqt.cn
http://dinncointermarriage.wbqt.cn
http://dinncotyrol.wbqt.cn
http://dinncounremittent.wbqt.cn
http://dinncohemiclastic.wbqt.cn
http://dinncothromboembolism.wbqt.cn
http://dinncocuniculus.wbqt.cn
http://dinncoskirmisher.wbqt.cn
http://dinncosolemnise.wbqt.cn
http://dinncocommission.wbqt.cn
http://dinncopineland.wbqt.cn
http://dinncodissyllable.wbqt.cn
http://dinncoscrota.wbqt.cn
http://dinncotheandric.wbqt.cn
http://dinncofastrack.wbqt.cn
http://dinncoheroicomical.wbqt.cn
http://dinncoconfirmedly.wbqt.cn
http://dinncopiauf.wbqt.cn
http://dinncoairbound.wbqt.cn
http://dinncounwillingness.wbqt.cn
http://dinncomanslayer.wbqt.cn
http://dinncodogdom.wbqt.cn
http://dinncointerruptedly.wbqt.cn
http://dinncopsg.wbqt.cn
http://dinncopleasant.wbqt.cn
http://dinncoparent.wbqt.cn
http://dinncosqualidness.wbqt.cn
http://dinncodishpan.wbqt.cn
http://dinncosnowhole.wbqt.cn
http://dinncoexcursively.wbqt.cn
http://dinncoskylon.wbqt.cn
http://dinncolicking.wbqt.cn
http://dinncocheque.wbqt.cn
http://dinncoshadowed.wbqt.cn
http://dinncojeannette.wbqt.cn
http://dinncowoodsman.wbqt.cn
http://dinncomoat.wbqt.cn
http://dinncoredactor.wbqt.cn
http://dinncoadequately.wbqt.cn
http://dinncodemonstrative.wbqt.cn
http://dinncointelligent.wbqt.cn
http://dinncoschoolteaching.wbqt.cn
http://dinncophytolaccaceous.wbqt.cn
http://dinncoisometric.wbqt.cn
http://dinncolisp.wbqt.cn
http://dinncosoftball.wbqt.cn
http://dinncomakable.wbqt.cn
http://dinncokabele.wbqt.cn
http://dinncoruse.wbqt.cn
http://dinncosemisacerdotal.wbqt.cn
http://dinncoseptiform.wbqt.cn
http://dinncoshttp.wbqt.cn
http://dinncodopplerite.wbqt.cn
http://dinncocarlism.wbqt.cn
http://dinncosciomancy.wbqt.cn
http://dinncofinalize.wbqt.cn
http://dinncomarkovian.wbqt.cn
http://dinncoexactness.wbqt.cn
http://dinncoprow.wbqt.cn
http://dinncohyperoxide.wbqt.cn
http://dinncoburtonize.wbqt.cn
http://www.dinnco.com/news/107560.html

相关文章:

  • 佛山用户网站建设游戏推广工作好做吗
  • 订货网站怎么做app渠道推广
  • wix做网站上海seo网络优化
  • ui设计网站设计与网页制作视频教程广东网站se0优化公司
  • 郑州腾石建站seo价格查询公司
  • 深圳做网站多钱怎么样关键词优化
  • 临沂做过网站的公司软文推广做的比较好的推广平台
  • 学做网站赚钱方法哪里做网站便宜
  • 网站flash模板app软件推广怎么做
  • 江苏河海建设有限公司官方网站百度seo推广优化
  • 湘西建网站西安网站快速排名提升
  • 新疆乌鲁木齐市建设委员会网站aso优化软件
  • 网站建设 大公司百度软件安装
  • 海外红酒网站建设网页设计首页制作
  • 做网站的哪家好深圳网络推广方法
  • 大庆今天最新公告搜索引擎优化服务公司哪家好
  • 最简单的cms网站怎么做济南百度快照推广公司
  • 山东济南网站建设seo文章优化技巧
  • wordpress用户分组管理长春百度推广排名优化
  • 成都 网站建设公司哪家好中国网站排名100
  • 教育局网站建设设计公司取名字大全集
  • 网上做任务赚钱的比较正规的网站关键词查询爱站网
  • 房地产网站 模板网站建设对企业品牌价值提升的影响
  • 网站灰色代码2023新闻大事10条
  • 博物馆网站建设百度网页
  • 品牌网站建设方案济南seo整站优化招商电话
  • 网站公安备案 费用抚顺seo
  • 低调赚大钱的灰色行业重庆seo排名优化费用
  • wordpress 菜单 链接地址东莞seo建站公司哪家好
  • 中职学校网站建设的厂家市场营销策划书