DNS lookup problem with beta15 on WIndows 10 Pro

Expected behavior

Npm module should install nodemon module

Actual behavior

DNS resolution fails

Information

Diagnostic id: B6B2BBCD-06F2-411D-8087-15B87165EC6D/2016-06-17_16-31-42

Contents of installDevelopmentTools.sh:

#!/bin/sh

apt-get update

apt-get install -y\
 curl\
 htop\
 less\
 man\
 nano\
 ngrep\
 net-tools\
 python\
 rsync\
 telnet\
 vim\
 --no-install-recommends

npm install -g\
 nodemon

Error:

Step 42 : RUN bash /tmp/installDevelopmentTools.sh
 ---> Running in 84d01309194f
Hit http://packages.dotdeb.org squeeze Release.gpg
Hit http://packages.dotdeb.org squeeze Release
Get:1 http://security.debian.org wheezy/updates Release.gpg [1554 B]
Hit http://archive.debian.org squeeze Release.gpg
Get:2 http://security.debian.org wheezy/updates Release [39.0 kB]
Hit http://archive.debian.org squeeze Release
Hit http://packages.dotdeb.org squeeze/all amd64 Packages
Hit http://packages.elastic.co stable Release.gpg
Hit http://httpredir.debian.org wheezy Release.gpg
Hit http://archive.debian.org squeeze/main amd64 Packages
Get:3 http://httpredir.debian.org wheezy-updates Release.gpg [1554 B]
Get:4 http://security.debian.org wheezy/updates/main amd64 Packages [500 kB]
Hit http://binaries.erlang-solutions.com wheezy Release.gpg
Hit http://packages.elastic.co stable Release
Hit http://www.rabbitmq.com testing Release.gpg
Hit http://archive.debian.org squeeze/contrib amd64 Packages
Get:5 http://httpredir.debian.org wheezy-updates Release [151 kB]
Hit http://archive.debian.org squeeze/non-free amd64 Packages
Hit http://packages.elastic.co stable/main amd64 Packages
Hit http://www.rabbitmq.com testing Release
Hit http://httpredir.debian.org wheezy Release
Hit http://www.rabbitmq.com testing/main amd64 Packages
Hit http://binaries.erlang-solutions.com wheezy Release
Hit http://httpredir.debian.org wheezy/main amd64 Packages
Hit http://binaries.erlang-solutions.com wheezy/contrib amd64 Packages
Get:6 http://httpredir.debian.org wheezy-updates/main amd64 Packages [7481 B]
Fetched 701 kB in 3s (197 kB/s)
Reading package lists...
W: Size of file /var/lib/apt/lists/security.debian.org_dists_wheezy_updates_main_binary-amd64_Packages.gz is not what the server reported 500253 500359
Reading package lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:
  bsdmainutils groff-base libgpm2 libnet1 libpcap0.8 libpipeline1
  python-minimal python2.7 python2.7-minimal vim-common vim-runtime
Suggested packages:
  cpp wamerican wordlist whois vacation groff strace ltrace gpm www-browser
  spell python-doc python-tk python2.7-doc binutils binfmt-support
  openssh-client openssh-server ctags vim-doc vim-scripts
The following NEW packages will be installed:
  bsdmainutils curl groff-base htop less libgpm2 libnet1 libpcap0.8
  libpipeline1 man-db nano net-tools ngrep python python-minimal python2.7
  python2.7-minimal rsync telnet vim vim-common vim-runtime
0 upgraded, 22 newly installed, 0 to remove and 7 not upgraded.
Need to get 14.9 MB of archives.
After this operation, 51.0 MB of additional disk space will be used.
Get:1 http://httpredir.debian.org/debian/ wheezy/main libpipeline1 amd64 1.2.1-1 [39.2 kB]
Get:2 http://httpredir.debian.org/debian/ wheezy/main libpcap0.8 amd64 1.3.0-1 [142 kB]
Get:3 http://httpredir.debian.org/debian/ wheezy/main libgpm2 amd64 1.20.4-6 [35.8 kB]
Get:4 http://httpredir.debian.org/debian/ wheezy/main bsdmainutils amd64 9.0.3 [209 kB]
Get:5 http://httpredir.debian.org/debian/ wheezy/main man-db amd64 2.6.2-1 [1061 kB]
Get:6 http://httpredir.debian.org/debian/ wheezy/main net-tools amd64 1.60-24.2 [346 kB]
Get:7 http://httpredir.debian.org/debian/ wheezy/main groff-base amd64 1.21-9 [1153 kB]
Get:8 http://httpredir.debian.org/debian/ wheezy/main nano amd64 2.2.6-1+b1 [586 kB]
Get:9 http://httpredir.debian.org/debian/ wheezy/main python2.7-minimal amd64 2.7.3-6+deb7u2 [1785 kB]
Get:10 http://httpredir.debian.org/debian/ wheezy/main less amd64 444-4 [135 kB]
Get:11 http://httpredir.debian.org/debian/ wheezy/main python-minimal all 2.7.3-4+deb7u1 [42.8 kB]
Get:12 http://httpredir.debian.org/debian/ wheezy/main vim-common amd64 2:7.3.547-7 [163 kB]
Get:13 http://httpredir.debian.org/debian/ wheezy/main htop amd64 1.0.1-1 [74.9 kB]
Get:14 http://httpredir.debian.org/debian/ wheezy/main curl amd64 7.26.0-1+wheezy13 [270 kB]
Get:15 http://httpredir.debian.org/debian/ wheezy/main ngrep amd64 1.45.ds2-12 [34.2 kB]
Get:16 http://httpredir.debian.org/debian/ wheezy/main vim-runtime all 2:7.3.547-7 [4607 kB]
Get:17 http://httpredir.debian.org/debian/ wheezy/main python2.7 amd64 2.7.3-6+deb7u2 [2728 kB]
Get:18 http://httpredir.debian.org/debian/ wheezy/main python all 2.7.3-4+deb7u1 [181 kB]
Get:19 http://httpredir.debian.org/debian/ wheezy/main vim amd64 2:7.3.547-7 [841 kB]
Get:20 http://httpredir.debian.org/debian/ wheezy/main telnet amd64 0.17-36 [71.8 kB]
Get:21 http://httpredir.debian.org/debian/ wheezy/main libnet1 amd64 1.1.4-2.1 [60.9 kB]
Get:22 http://httpredir.debian.org/debian/ wheezy/main rsync amd64 3.0.9-4 [369 kB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 14.9 MB in 22s (656 kB/s)
Selecting previously unselected package libpipeline1:amd64.
(Reading database ... 19271 files and directories currently installed.)
Unpacking libpipeline1:amd64 (from .../libpipeline1_1.2.1-1_amd64.deb) ...
Selecting previously unselected package libgpm2:amd64.
Unpacking libgpm2:amd64 (from .../libgpm2_1.20.4-6_amd64.deb) ...
Selecting previously unselected package libpcap0.8:amd64.
Unpacking libpcap0.8:amd64 (from .../libpcap0.8_1.3.0-1_amd64.deb) ...
Selecting previously unselected package bsdmainutils.
Unpacking bsdmainutils (from .../bsdmainutils_9.0.3_amd64.deb) ...
Selecting previously unselected package groff-base.
Unpacking groff-base (from .../groff-base_1.21-9_amd64.deb) ...
Selecting previously unselected package man-db.
Unpacking man-db (from .../man-db_2.6.2-1_amd64.deb) ...
Selecting previously unselected package nano.
Unpacking nano (from .../nano_2.2.6-1+b1_amd64.deb) ...
Selecting previously unselected package net-tools.
Unpacking net-tools (from .../net-tools_1.60-24.2_amd64.deb) ...
Selecting previously unselected package vim-common.
Unpacking vim-common (from .../vim-common_2%3a7.3.547-7_amd64.deb) ...
Selecting previously unselected package less.
Unpacking less (from .../archives/less_444-4_amd64.deb) ...
Selecting previously unselected package python2.7-minimal.
Unpacking python2.7-minimal (from .../python2.7-minimal_2.7.3-6+deb7u2_amd64.deb) ...
Selecting previously unselected package python2.7.
Unpacking python2.7 (from .../python2.7_2.7.3-6+deb7u2_amd64.deb) ...
Selecting previously unselected package python-minimal.
Unpacking python-minimal (from .../python-minimal_2.7.3-4+deb7u1_all.deb) ...
Selecting previously unselected package python.
Unpacking python (from .../python_2.7.3-4+deb7u1_all.deb) ...
Selecting previously unselected package telnet.
Unpacking telnet (from .../telnet_0.17-36_amd64.deb) ...
Selecting previously unselected package curl.
Unpacking curl (from .../curl_7.26.0-1+wheezy13_amd64.deb) ...
Selecting previously unselected package htop.
Unpacking htop (from .../htop_1.0.1-1_amd64.deb) ...
Selecting previously unselected package libnet1.
Unpacking libnet1 (from .../libnet1_1.1.4-2.1_amd64.deb) ...
Selecting previously unselected package ngrep.
Unpacking ngrep (from .../ngrep_1.45.ds2-12_amd64.deb) ...
Selecting previously unselected package rsync.
Unpacking rsync (from .../rsync_3.0.9-4_amd64.deb) ...
Selecting previously unselected package vim-runtime.
Unpacking vim-runtime (from .../vim-runtime_2%3a7.3.547-7_all.deb) ...
Adding 'diversion of /usr/share/vim/vim73/doc/help.txt to /usr/share/vim/vim73/doc/help.txt.vim-tiny by vim-runtime'
Adding 'diversion of /usr/share/vim/vim73/doc/tags to /usr/share/vim/vim73/doc/tags.vim-tiny by vim-runtime'
Selecting previously unselected package vim.
Unpacking vim (from .../vim_2%3a7.3.547-7_amd64.deb) ...
Processing triggers for mime-support ...
Setting up libpipeline1:amd64 (1.2.1-1) ...
Setting up libgpm2:amd64 (1.20.4-6) ...
Setting up libpcap0.8:amd64 (1.3.0-1) ...
Setting up bsdmainutils (9.0.3) ...
update-alternatives: using /usr/bin/bsd-write to provide /usr/bin/write (write) in auto mode
update-alternatives: using /usr/bin/bsd-from to provide /usr/bin/from (from) in auto mode
Setting up groff-base (1.21-9) ...
Setting up man-db (2.6.2-1) ...
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (This frontend requires a controlling tty.)
debconf: falling back to frontend: Teletype
Building database of manual pages ...
Setting up nano (2.2.6-1+b1) ...
update-alternatives: using /bin/nano to provide /usr/bin/editor (editor) in auto mode
update-alternatives: using /bin/nano to provide /usr/bin/pico (pico) in auto mode
Setting up net-tools (1.60-24.2) ...
Setting up vim-common (2:7.3.547-7) ...
Setting up less (444-4) ...
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (This frontend requires a controlling tty.)
debconf: falling back to frontend: Teletype
Setting up python2.7-minimal (2.7.3-6+deb7u2) ...
Linking and byte-compiling packages for runtime python2.7...
Setting up python2.7 (2.7.3-6+deb7u2) ...
Setting up python-minimal (2.7.3-4+deb7u1) ...
Setting up python (2.7.3-4+deb7u1) ...
Setting up telnet (0.17-36) ...
update-alternatives: using /usr/bin/telnet.netkit to provide /usr/bin/telnet (telnet) in auto mode
Setting up curl (7.26.0-1+wheezy13) ...
Setting up htop (1.0.1-1) ...
Setting up libnet1 (1.1.4-2.1) ...
Setting up ngrep (1.45.ds2-12) ...
Setting up rsync (3.0.9-4) ...
update-rc.d: using dependency based boot sequencing
invoke-rc.d: policy-rc.d denied execution of restart.
Setting up vim-runtime (2:7.3.547-7) ...
Processing /usr/share/vim/addons/doc
Setting up vim (2:7.3.547-7) ...
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vim (vim) in auto mode
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vimdiff (vimdiff) in auto mode
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/rvim (rvim) in auto mode
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/rview (rview) in auto mode
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vi (vi) in auto mode
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/view (view) in auto mode
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/ex (ex) in auto mode
npm ERR! fetch failed https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.0.tgz
npm WARN retry will retry, error on last attempt: Error: getaddrinfo ENOTFOUND registry.npmjs.org
npm ERR! fetch failed https://registry.npmjs.org/fsevents/-/fsevents-1.0.12.tgz
npm WARN retry will retry, error on last attempt: Error: getaddrinfo ENOTFOUND registry.npmjs.org
npm ERR! fetch failed https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.0.tgz
npm WARN retry will retry, error on last attempt: Error: getaddrinfo ENOTFOUND registry.npmjs.org
npm ERR! fetch failed https://registry.npmjs.org/fsevents/-/fsevents-1.0.12.tgz
npm WARN retry will retry, error on last attempt: Error: getaddrinfo ENOTFOUND registry.npmjs.org

npm ERR! fetch failed https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.0.tgz
npm ERR! fetch failed https://registry.npmjs.org/fsevents/-/fsevents-1.0.12.tgz
npm WARN optional dep failed, continuing fsevents@^1.0.0
npm ERR! Linux 4.4.12-moby
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install" "-g" "nodemon"
npm ERR! node v0.12.9
npm ERR! npm  v2.14.9
npm ERR! code ECONNRESET
npm ERR! errno ECONNRESET
npm ERR! syscall read

npm ERR! network read ECONNRESET
npm ERR! network This is most likely not a problem with npm itself
npm ERR! network and is related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settings.
npm ERR! network
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly.  See: 'npm help config'
npm ERR! Linux 4.4.12-moby
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install" "-g" "nodemon"
npm ERR! node v0.12.9
npm ERR! npm  v2.14.9
npm ERR! code ECONNRESET
npm ERR! errno ECONNRESET
npm ERR! syscall read

npm ERR! network read ECONNRESET
npm ERR! network This is most likely not a problem with npm itself
npm ERR! network and is related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settings.
npm ERR! network
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly.  See: 'npm help config'
npm ERR! Linux 4.4.12-moby
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install" "-g" "nodemon"
npm ERR! node v0.12.9
npm ERR! npm  v2.14.9
npm ERR! code ECONNRESET
npm ERR! errno ECONNRESET
npm ERR! syscall read

npm ERR! network read ECONNRESET
npm ERR! network This is most likely not a problem with npm itself
npm ERR! network and is related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settings.
npm ERR! network
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly.  See: 'npm help config'
npm ERR! Linux 4.4.12-moby
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install" "-g" "nodemon"
npm ERR! node v0.12.9
npm ERR! npm  v2.14.9
npm ERR! code ENOTFOUND
npm ERR! errno ENOTFOUND
npm ERR! syscall getaddrinfo

npm ERR! network getaddrinfo ENOTFOUND registry.npmjs.org
npm ERR! network This is most likely not a problem with npm itself
npm ERR! network and is related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settings.
npm ERR! network
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly.  See: 'npm help config'

npm ERR! Please include the following file with any support request:
npm ERR!     /npm-debug.log
Removing intermediate container 84d01309194f
The command '/bin/sh -c bash /tmp/installDevelopmentTools.sh' returned a non-zero code: 1

Because the apt-get update just before works I suspect that this may be caused by a network problem inside the container.

This was fixed in Docker for Windows beta 17.