[Starlingx-discuss] build-pkgs: package built failed , mock package missing

Arce Moreno, Abraham abraham.arce.moreno at intel.com
Fri Jul 13 00:39:18 UTC 2018


Thanks ZhipengS!

> When I run below step
> $ docker build -t user:centos-mirror-repository -f Dockerfile .
> It mentioned
> Get https://registry-1.docker.io/v2/: net/http: request canceled while waiting
> for connection
> 
> It can work after following below steps.
> ===========================================================
> Here is a link to the official docker doc for proxy
> http:https://docs.docker.com/engine/admin/systemd/#http-proxy
> A quick outline:
> First, create a systemd drop-in directory for the docker service:
> mkdir /etc/systemd/system/docker.service.d
> Now create a file called /etc/systemd/system/docker.service.d/http-
> proxy.conf that adds the HTTP_PROXY environment variable:
> [Service]
> Environment="HTTP_PROXY=http://proxy.example.com:80/"
> If you have internal Docker registries that you need to contact without
> proxying you can specify them via the NO_PROXY environment variable:
> Environment="HTTP_PROXY=http://proxy.example.com:80/"
> Environment="NO_PROXY=localhost,127.0.0.0/8,docker-
> registry.somecorporation.com"
> Flush changes:
> $ sudo systemctl daemon-reload
> Verify that the configuration has been loaded:
> $ sudo systemctl show --property Environment docker
> Environment=HTTP_PROXY=http://proxy.example.com:80/
> Restart Docker:
> $ sudo systemctl restart docker

I have add the url for this, your post, as a reference under
  https://wiki.openstack.org/wiki/StarlingX/Developer_Guide#Software_Requirements

We will leave the hard work to change references using best tech writing guidelines to our experts.


More information about the Starlingx-discuss mailing list