【问题标题】:FIWARE Lab - Docker images connectivity issues building imagesFIWARE Lab - Docker 图像连接问题构建图像
【发布时间】:2018-07-16 07:12:03
【问题描述】:

尝试在 FIWARE Lab 机器中安装一些 GE,安装未使用 Centos 基础映像完成。

我在本地虚拟机上尝试了相同的过程,我可以成功安装 docker 容器。

尝试使用 docker 说明安装 FIWARE PEP 代理(构建映像): https://github.com/ging/fiware-pep-proxy/tree/master/extras/docker

sudo docker build -t pep-proxy-image .
Sending build context to Docker daemon 6.656 kB
Step 1/7 : FROM ubuntu:14.04
 ---> 578c3e61a98c
Step 2/7 : MAINTAINER FIWARE Wilma PEP Proxy Team. DIT-UPM
 ---> Using cache
 ---> 79f4c3dbc65b
Step 3/7 : WORKDIR /opt
 ---> Using cache
 ---> e705b36ae1f3
Step 4/7 : RUN sudo apt-get update &&   sudo apt-get install make g++ software-properties-common python-software-properties -y &&       sudo add-apt-repository ppa:chris-lea/node.js -y &&     sudo apt-get update &&  sudo apt-get install nodejs git -y
---> Running in 7ee6f4ca98fa

Ign http://archive.ubuntu.com trusty InRelease
Ign http://security.ubuntu.com trusty-security InRelease
Ign http://archive.ubuntu.com trusty-updates InRelease
Get:1 http://security.ubuntu.com trusty-security Release.gpg [916 B]
Ign http://security.ubuntu.com trusty-security Release
Ign http://archive.ubuntu.com trusty-backports InRelease
Get:2 http://archive.ubuntu.com trusty Release.gpg [933 B]
Get:3 http://archive.ubuntu.com trusty-updates Release.gpg [916 B]
Get:4 http://archive.ubuntu.com trusty-backports Release.gpg [916 B]
Ign http://archive.ubuntu.com trusty Release
Ign http://archive.ubuntu.com trusty-updates Release
Ign http://archive.ubuntu.com trusty-backports Release

我在主机中具有完全连接性,并且我在开放堆栈(如 Web 仪表板)上打开了安全规则。我也禁用了 Centos 防火墙

systemctl disable firewalld

如果我下载图像没有问题,但我无法在 FIWARE Lab 上构建 提前致谢

【问题讨论】:

    标签: docker centos7 openstack fiware


    【解决方案1】:

    我认为这是 MTU 的问题。 VM 的 MTU 为 1400,而 docker 默认的 MTU 为 1500,因此它们不起作用。

    因此,考虑到https://docs.docker.com/install/linux/docker-ce/centos/ 中描述的安装并基于此处描述的默认网络自定义:https://docs.docker.com/v17.09/engine/userguide/networking/default_network/custom-docker0/

    我们可以使用此配置来配置 docker0 创建文件 /etc/docker/daemon.json 以使其与默认配置一样:

    {
      "bip": "172.17.0.1/16",
      "fixed-cidr": "172.17.0.1/16",
      "mtu": 1400,
      "dns": ["8.8.8.8"]
    }
    

    然后重新启动 docker 服务后,一切都应该正常工作了。

    【讨论】:

    • 使用指示的参数编辑 json 文件可以正常工作
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-03-09
    • 2016-12-22
    • 2019-02-19
    相关资源
    最近更新 更多