Reputation: 1968
I am installed docker on ubuntu 14.04 LTS and started docker service but while pulling image for ubuntu or running some example shown in user guide I am getting error .
$sudo docker run ubuntu:14.04 /bin/echo 'Hello world'
Unable to find image 'ubuntu:14.04' locally
Pulling repository ubuntu
FATA[0002] Get https://index.docker.io/v1/repositories/library/ubuntu/images: read tcp 162.242.195.84:443: connection reset by peer
Thanks In advance
Upvotes: 3
Views: 6173
Reputation: 21
Resolved this by installing the latest docker from maintained ubuntu packages.
Steps:
Ensure host’s APT can handle https downloads. This should exists
/usr/lib/apt/methods/https
Add the Docker repository to your host’s key chain.
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9
Add the docker repository to your hosts APT sources list.
sudo sh -c "echo deb https://get.docker.com/ubuntu docker main\
> /etc/apt/sources.list.d/docker.list"
Update APT.
sudo apt-get update
Install dcoker.
sudo apt-get install lxc-docker
Referenced this blog post: http://buildvirtual.net/docker-installing-docker-on-ubuntu-trusty-14-04/
Upvotes: 1