Docker pull error : x509: certificate has expired or is not yet valid

Description of problem:

I’m trying to pull ubuntu from the public registry with this command :

  • will docker share binary file or not?
  • Update & Upgrade Docker distribution on Windows
  • How to delete an inherit property from yaml config?
  • DropWizard app cannot be accessed from outside Docker
  • Keeping access to STDIN of a program run in the background via a FIFO
  • Bind-mount volume of different type from guest to host
  • docker pull ubuntu
    

    And then i got this results (the previous command was working yesterday) :

    “Error while pulling image: Get https://index.docker.io/v1/repositories/library/ubuntu/images: x509: certificate has expired or is not yet valid”

    docker version :

    Client:
    Version: 1.10.0
    API version: 1.22
    Go version: go1.5.3
    Git commit: 590d510
    Built: Thu Feb 4 18:36:33 2016
    OS/Arch: linux/amd64
    
    Server:
    Version: 1.10.0
    API version: 1.22
    Go version: go1.5.3
    Git commit: 590d510
    Built: Thu Feb 4 18:36:33 2016
    OS/Arch: linux/amd64
    

    docker info :

    Containers: 4
    Running: 0
    Paused: 0
    Stopped: 4
    Images: 20
    Server Version: 1.10.0
    Storage Driver: aufs
    Root Dir: /var/lib/docker/aufs
    Backing Filesystem: extfs
    Dirs: 44
    Dirperm1 Supported: true
    Execution Driver: native-0.2
    Logging Driver: json-file
    Plugins: 
    Volume: local
    Network: bridge null host
    Kernel Version: 3.19.0-49-generic
    Operating System: Ubuntu 14.04.3 LTS
    OSType: linux
    Architecture: x86_64
    CPUs: 4
    Total Memory: 5.815 GiB
    Name: ubuntu
    ID: Y6OO:23T2:BAPU:DVQJ:HJCJ:USEP:T6EU:PMG4:O4M6:46C7:JKPC:BQHT
    WARNING: No swap limit support
    

    uname -a :

    Linux ubuntu 3.19.0-49-generic #55~14.04.1-Ubuntu SMP Fri Jan 22 11:24:31 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
    

    I verify my “date” and everything is good. I don’t know where this issue can come from.

  • How to give non-root user in Docker container access to a volume mounted on the host
  • Docker download layers sequentially
  • Docker volume not available during execution
  • Docker inter container communication not working
  • ffmpeg failed - 455 Method Not Valid in This State
  • How can I run a docker container on localhost over the default IP?
  • 2 Solutions collect form web for “Docker pull error : x509: certificate has expired or is not yet valid”

    You can either use –insecure-registry=[] option while starting docker deamon or need to provide valid certificate path. Look here for details.

    You need to check with network configuration.If you assign single network interface you will get this issue.In network setting check NIC’s are enable both public and private.

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.