Docker pull:名称解析暂时失败

时间:2018-08-17 00:25:19

标签: docker dns dnsmasq

我正在尝试提取一个docker镜像,它遇到了dns问题。能够ping通Internet。 我看过类似的问题,但似乎没有一种解决方案对我有用!

import moment from 'moment';
import React from 'react';

class ReactPage extends React.Component {
  constructor(props) {
    super(props)
    this.setTimeMonth = this.setTimeMonth.bind(this)
    this.setTimeDay = this.setTimeDay.bind(this)
  }

  state = {
      CUS_KEY: "",
      Date1: "",
      Date2: "",
      Date3: ""
  }

  setTimeMonth = (time) => {/*code*/}
  setTimeDay = (time) => {/*code*/}

  //some more functions

  render(){
      return();
  }
}
export default ReactPage; 

resolv.conf

[xr-vm_node0_RP0_CPU0:~]$docker pull hello-world
Using default tag: latest
Pulling repository docker.io/library/hello-world
Error while pulling image: Get https://index.docker.io/v1/repositories/library/hello-world/images: dial tcp: lookup index.docker.io: Temporary failure in name resolution

ping谷歌

[xr-vm_node0_RP0_CPU0:~]$cat /etc/resolv.conf
nameserver 8.8.8.8

0 个答案:

没有答案