acloudfan / HLF-Vagrant-Dev-Setup

Vagrant Development Environment for Composer Development
23 stars 30 forks source link

Cannot connect with the docker daemon #2

Open ajeeeunni opened 6 years ago

ajeeeunni commented 6 years ago

I am trying to setup VM in mac. I have downloaded all images with ./downloadFabric.sh then added export DOCKER_HOST=tcp://localhost:2376 unset DOCKER_TLS_VARIFY to the .profile. then tried to run docker images but I got error "Cannot connect to the Docker daemon at tcp://localhost:2376. Is the docker daemon running?"

Can you help me to fix this?

acloudfan commented 6 years ago

Hi there....for the Vagrant based setup .... you need to setup the the environment variables appropriately as explained in the lecture.....you need to set DOCKER_HOST= tcp://localhost:2375 also you need to unset DOCKER_TLS_VERIFY

Please use the course Q&A for questions ..... you will be able to find answers to many such questions there

Regards, Raj

On Thu, Jun 21, 2018 at 8:48 AM, ajeeeunni notifications@github.com wrote:

I am trying to setup VM in mac. I have downloaded all images with ./downloadFabric.sh then added export DOCKER_HOST=tcp://localhost:2376 unset DOCKER_TLS_VARIFY to the .profile. then tried to run docker images but I got error "Cannot connect to the Docker daemon at tcp://localhost:2376. Is the docker daemon running?"

Can you help me to fix this?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/acloudfan/HLF-Vagrant-Dev-Setup/issues/2, or mute the thread https://github.com/notifications/unsubscribe-auth/AOmhqy_6OCrLWPrDDAkyYnT3n5dZs9Ruks5t-5YtgaJpZM4UyAAT .

ajeeeunni commented 6 years ago

As I mentioned in the question I have already added the set DOCKER_HOST= tcp://localhost:2375 and DOCKER_TLS_VERIFY to the .profile. After added these I got this issue

acloudfan commented 6 years ago

clearly the environment variable have not taken effect as indicated by the message " Cannot connect to the Docker daemon at tcp://localhost:2376 "....also ensure spellings are correct for the env vars.... did you open a new terminal to exec the command?

On Thu, Jun 21, 2018 at 9:03 AM, ajeeeunni notifications@github.com wrote:

As I mentioned in the question I have already added the set DOCKER_HOST= tcp://localhost:2375 and DOCKER_TLS_VERIFY to the .profile. After added these I got this issue

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/acloudfan/HLF-Vagrant-Dev-Setup/issues/2#issuecomment-399095883, or mute the thread https://github.com/notifications/unsubscribe-auth/AOmhq8bY7rnkg6SWM5G5ZNBtcdZ1-d2wks5t-5mbgaJpZM4UyAAT .

acloudfan commented 6 years ago

Did you try npm install --no-bin-links

Do share the results

Regards, Raj

On Wed, Sep 26, 2018 at 10:24 PM mithunreddyr notifications@github.com wrote:

While running npm install I am getting below error. Please advise

vagrant@vagrant:/workspace/util$ sudo npm install npm WARN rollback Rolling back ansi-regex@3.0.0 failed (this is probably harmless): ETXTBSY: text file is busy, unlink '/home/vagrant/workspace/util/node_modules/ansi-regex/package.json.2122661898' npm WARN rollback Rolling back ansi-escapes@3.1.0 failed (this is probably harmless): ETXTBSY: text file is busy, unlink '/home/vagrant/workspace/util/node_modules/ansi-escapes/package.json.1959413799' npm WARN rollback Rolling back color-name@1.1.3 failed (this is probably harmless): ETXTBSY: text file is busy, unlink '/home/vagrant/workspace/util/node_modules/color-name/package.json.3532470411' npm WARN rollback Rolling back cli-width@2.2.0 failed (this is probably harmless): ETXTBSY: text file is busy, unlink '/home/vagrant/workspace/util/node_modules/cli-width/package.json.1894572180' npm WARN rollback Rolling back chardet@0.4.2 failed (this is probably harmless): ETXTBSY: text file is busy, unlink '/home/vagrant/workspace/util/node_modules/chardet/package.json.1850742644' npm WARN rollback Rolling back color-convert@1.9.3 failed (this is probably harmless): ETXTBSY: text file is busy, unlink '/home/vagrant/workspace/util/node_modules/color-convert/package.json.205333798' npm WARN rollback Rolling back ansi-styles@3.2.1 failed (this is probably harmless): ETXTBSY: text file is busy, unlink '/home/vagrant/workspace/util/node_modules/ansi-styles/package.json.1667045930' npm WARN rollback Rolling back figures@2.0.0 failed (this is probably harmless): ETXTBSY: text file is busy, unlink '/home/vagrant/workspace/util/node_modules/figures/package.json.1636924569' npm WARN rollback Rolling back escape-string-regexp@1.0.5 failed (this is probably harmless): ETXTBSY: text file is busy, unlink '/home/vagrant/workspace/util/node_modules/escape-string-regexp/package.json.254423420' npm WARN rollback Rolling back has-flag@3.0.0 failed (this is probably harmless): ETXTBSY: text file is busy, unlink '/home/vagrant/workspace/util/node_modules/has-flag/package.json.3070974400' npm WARN rollback Rolling back graceful-fs@4.1.11 failed (this is probably harmless): ETXTBSY: text file is busy, unlink '/home/vagrant/workspace/util/node_modules/graceful-fs/package.json.1459042451' npm WARN rollback Rolling back inherits@2.0.3 failed (this is probably harmless): ETXTBSY: text file is busy, unlink '/home/vagrant/workspace/util/node_modules/inherits/package.json.2339197283' npm WARN rollback Rolling back is-fullwidth-code-point@2.0.0 failed (this is probably harmless): ETXTBSY: text file is busy, unlink '/home/vagrant/workspace/util/node_modules/is-fullwidth-code-point/package.json.2704915311' npm WARN rollback Rolling back jsonfile@4.0.0 failed (this is probably harmless): ETXTBSY: text file is busy, unlink '/home/vagrant/workspace/util/node_modules/jsonfile/package.json.3657757413' npm WARN rollback Rolling back is-promise@2.1.0 failed (this is probably harmless): ETXTBSY: text file is busy, unlink '/home/vagrant/workspace/util/node_modules/is-promise/package.json.410691030' npm WARN rollback Rolling back mute-stream@0.0.7 failed (this is probably harmless): ETXTBSY: text file is busy, unlink '/home/vagrant/workspace/util/node_modules/mute-stream/package.json.588051204' npm WARN rollback Rolling back lodash@4.17.11 failed (this is probably harmless): ETXTBSY: text file is busy, unlink '/home/vagrant/workspace/util/node_modules/lodash/package.json.4282413223' npm WARN rollback Rolling back mimic-fn@1.2.0 failed (this is probably harmless): ETXTBSY: text file is busy, unlink '/home/vagrant/workspace/util/node_modules/mimic-fn/package.json.1729802749' npm WARN rollback Rolling back os-tmpdir@1.0.2 failed (this is probably harmless): ETXTBSY: text file is busy, unlink '/home/vagrant/workspace/util/node_modules/os-tmpdir/package.json.3259800232' npm WARN rollback Rolling back onetime@2.0.1 failed (this is probably harmless): ETXTBSY: text file is busy, unlink '/home/vagrant/workspace/util/node_modules/onetime/package.json.1346815833' npm WARN rollback Rolling back run-async@2.3.0 failed (this is probably harmless): ETXTBSY: text file is busy, unlink '/home/vagrant/workspace/util/node_modules/run-async/package.json.321698174' npm WARN rollback Rolling back process@0.11.10 failed (this is probably harmless): ETXTBSY: text file is busy, unlink '/home/vagrant/workspace/util/node_modules/process/package.json.2560035987' npm WARN rollback Rolling back iconv-lite@0.4.24 failed (this is probably harmless): ETXTBSY: text file is busy, unlink '/home/vagrant/workspace/util/node_modules/iconv-lite/package.json.58915806' npm WARN rollback Rolling back safer-buffer@2.1.2 failed (this is probably harmless): ETXTBSY: text file is busy, unlink '/home/vagrant/workspace/util/node_modules/safer-buffer/package.json.2939933113' npm WARN rollback Rolling back signal-exit@3.0.2 failed (this is probably harmless): ETXTBSY: text file is busy, unlink '/home/vagrant/workspace/util/node_modules/signal-exit/package.json.4055327003' npm WARN rollback Rolling back restore-cursor@2.0.0 failed (this is probably harmless): ETXTBSY: text file is busy, unlink '/home/vagrant/workspace/util/node_modules/restore-cursor/package.json.3949494341' npm WARN rollback Rolling back cli-cursor@2.1.0 failed (this is probably harmless): ETXTBSY: text file is busy, unlink '/home/vagrant/workspace/util/node_modules/cli-cursor/package.json.3926230890' npm WARN rollback Rolling back supports-color@5.5.0 failed (this is probably harmless): ETXTBSY: text file is busy, unlink '/home/vagrant/workspace/util/node_modules/supports-color/package.json.204573016' npm WARN rollback Rolling back strip-ansi@4.0.0 failed (this is probably harmless): ETXTBSY: text file is busy, unlink '/home/vagrant/workspace/util/node_modules/strip-ansi/package.json.686967529' npm WARN rollback Rolling back string-width@2.1.1 failed (this is probably harmless): ETXTBSY: text file is busy, unlink '/home/vagrant/workspace/util/node_modules/string-width/package.json.2895979410' npm WARN rollback Rolling back through@2.3.8 failed (this is probably harmless): ETXTBSY: text file is busy, unlink '/home/vagrant/workspace/util/node_modules/through/package.json.1853706453' npm WARN rollback Rolling back chalk@2.4.1 failed (this is probably harmless): ETXTBSY: text file is busy, unlink '/home/vagrant/workspace/util/node_modules/chalk/package.json.1824946824' npm WARN rollback Rolling back symbol-observable@1.0.1 failed (this is probably harmless): ETXTBSY: text file is busy, unlink '/home/vagrant/workspace/util/node_modules/symbol-observable/package.json.254753132' npm WARN rollback Rolling back rxjs@5.5.12 failed (this is probably harmless): ETXTBSY: text file is busy, unlink '/home/vagrant/workspace/util/node_modules/rxjs/package.json.1858354080' npm WARN rollback Rolling back tmp@0.0.33 failed (this is probably harmless): ETXTBSY: text file is busy, unlink '/home/vagrant/workspace/util/node_modules/tmp/package.json.3789193330' npm WARN rollback Rolling back external-editor@2.2.0 failed (this is probably harmless): ETXTBSY: text file is busy, unlink '/home/vagrant/workspace/util/node_modules/external-editor/package.json.2664907344' npm WARN rollback Rolling back universalify@0.1.2 failed (this is probably harmless): ETXTBSY: text file is busy, unlink '/home/vagrant/workspace/util/node_modules/universalify/package.json.2701382326' npm WARN rollback Rolling back util@0.10.4 failed (this is probably harmless): ETXTBSY: text file is busy, unlink '/home/vagrant/workspace/util/node_modules/util/package.json.3574656671' npm WARN rollback Rolling back fs@0.0.1-security failed (this is probably harmless): ETXTBSY: text file is busy, unlink '/home/vagrant/workspace/util/node_modules/fs/package.json.205745340' npm WARN rollback Rolling back figlet@1.2.0 failed (this is probably harmless): ETXTBSY: text file is busy, unlink '/home/vagrant/workspace/util/node_modules/figlet/package.json.3830296805' npm WARN rollback Rolling back fs-extra@5.0.0 failed (this is probably harmless): ETXTBSY: text file is busy, unlink '/home/vagrant/workspace/util/node_modules/fs-extra/package.json.567749547'npm WARN rollback Rolling back inquirer@5.2.0 failed (this is probably harmless): ETXTBSY: text file is busy, unlink '/home/vagrant/workspace/util/node_modules/inquirer/package.json.1257464635'npm WARN rollback Rolling back path@0.12.7 failed (this is probably harmless): ETXTBSY: text file is busy, unlink '/home/vagrant/workspace/util/node_modules/path/package.json.3970803589'npm WARN rollback Rolling back os@0.1.1 failed (this is probably harmless): ETXTBSY: text file is busy, unlink '/home/vagrant/workspace/util/node_modules/os/package.json.1581238022'npm WARN devutil@1.0.0 No repository field.npm ERR! path /home/vagrant/workspace/util/node_modules/ansi-regex/package.json.2122661898npm ERR! code ETXTBSYnpm ERR! errno -26npm ERR! syscall renamenpm ERR! ETXTBSY: text file is busy, rename '/home/vagrant/workspace/util/node_modules/ansi-regex/package.json.2122661898' -> '/home/vagrant/workspace/util/node_modules/ansi-regex/package.json'npm ERR! A complete log of this run can be found in:npm ERR! /home/vagrant/.npm/_logs/2018-09-26T18_04_22_125Z-debug.logvagrant@vagrant :/workspace/util$ vi /home/vagrant/.npm/_logs/2018-09-26T18_04_22_125Z-debug.log vagrant@vagrant:/workspace/util$ npm -v 6.4.1 vagrant@vagrant:/workspace/util$ node -v v8.12.0 vagrant@vagrant:/workspace/util$ rm -rf node_modules vagrant@vagrant:/workspace/util$ npm install --no-bin-links npm WARN rollback Rolling back ansi-escapes@3.1.0 failed (this is probably harmless): ETXTBSY: text file is busy, unlink '/home/vagrant/workspace/util/node_modules/ansi-escapes/package.json.3141879745' npm WARN rollback Rolling back chardet@0.4.2 failed (this is probably harmless): ETXTBSY: text file is busy, unlink '/home/vagrant/workspace/util/node_modules/chardet/package.json.2335603569' npm WARN rollback Rolling back ansi-regex@3.0.0 failed (this is probably harmless): ETXTBSY: text file is busy, unlink '/home/vagrant/workspace/util/node_modules/ansi-regex/package.json.3516092923' npm WARN rollback Rolling back color-convert@1.9.3 failed (this is probably harmless): ETXTBSY: text file is busy, unlink '/home/vagrant/workspace/util/node_modules/color-convert/package.json.3561235214' npm WARN rollback Rolling back color-name@1.1.3 failed (this is probably harmless): ETXTBSY: text file is busy, unlink '/home/vagrant/workspace/util/node_modules/color-name/package.json.900974991' npm WARN rollback Rolling back ansi-styles@3.2.1 failed (this is probably harmless): ETXTBSY: text file is busy, unlink '/home/vagrant/workspace/util/node_modules/ansi-styles/package.json.1335261776' npm WARN rollback Rolling back escape-string-regexp@1.0.5 failed (this is probably harmless): ETXTBSY: text file is busy, unlink '/home/vagrant/workspace/util/node_modules/escape-string-regexp/package.json.3331050125' npm WARN rollback Rolling back cli-width@2.2.0 failed (this is probably harmless): ETXTBSY: text file is busy, unlink '/home/vagrant/workspace/util/node_modules/cli-width/package.json.1276422305' npm WARN rollback Rolling back figures@2.0.0 failed (this is probably harmless): ETXTBSY: text file is busy, unlink '/home/vagrant/workspace/util/node_modules/figures/package.json.3250436329' npm WARN rollback Rolling back graceful-fs@4.1.11 failed (this is probably harmless): ETXTBSY: text file is busy, unlink '/home/vagrant/workspace/util/node_modules/graceful-fs/package.json.2187819' npm WARN rollback Rolling back inherits@2.0.3 failed (this is probably harmless): ETXTBSY: text file is busy, unlink '/home/vagrant/workspace/util/node_modules/inherits/package.json.116012526' npm WARN rollback Rolling back has-flag@3.0.0 failed (this is probably harmless): ETXTBSY: text file is busy, unlink '/home/vagrant/workspace/util/node_modules/has-flag/package.json.4018155693' npm WARN rollback Rolling back is-fullwidth-code-point@2.0.0 failed (this is probably harmless): ETXTBSY: text file is busy, unlink '/home/vagrant/workspace/util/node_modules/is-fullwidth-code-point/package.json.4276468323' npm WARN rollback Rolling back is-promise@2.1.0 failed (this is probably harmless): ETXTBSY: text file is busy, unlink '/home/vagrant/workspace/util/node_modules/is-promise/package.json.1830321365' npm WARN rollback Rolling back jsonfile@4.0.0 failed (this is probably harmless): ETXTBSY: text file is busy, unlink '/home/vagrant/workspace/util/node_modules/jsonfile/package.json.3543242836' npm WARN rollback Rolling back mimic-fn@1.2.0 failed (this is probably harmless): ETXTBSY: text file is busy, unlink '/home/vagrant/workspace/util/node_modules/mimic-fn/package.json.2234031838' npm WARN rollback Rolling back lodash@4.17.11 failed (this is probably harmless): ETXTBSY: text file is busy, unlink '/home/vagrant/workspace/util/node_modules/lodash/package.json.1144405001' npm WARN rollback Rolling back mute-stream@0.0.7 failed (this is probably harmless): ETXTBSY: text file is busy, unlink '/home/vagrant/workspace/util/node_modules/mute-stream/package.json.4205872359' npm WARN rollback Rolling back onetime@2.0.1 failed (this is probably harmless): ETXTBSY: text file is busy, unlink '/home/vagrant/workspace/util/node_modules/onetime/package.json.1172126324' npm WARN rollback Rolling back safer-buffer@2.1.2 failed (this is probably harmless): ETXTBSY: text file is busy, unlink '/home/vagrant/workspace/util/node_modules/safer-buffer/package.json.1392513150' npm WARN rollback Rolling back run-async@2.3.0 failed (this is probably harmless): ETXTBSY: text file is busy, unlink '/home/vagrant/workspace/util/node_modules/run-async/package.json.3953071013' npm WARN rollback Rolling back process@0.11.10 failed (this is probably harmless): ETXTBSY: text file is busy, unlink '/home/vagrant/workspace/util/node_modules/process/package.json.3188226592' npm WARN rollback Rolling back os-tmpdir@1.0.2 failed (this is probably harmless): ETXTBSY: text file is busy, unlink '/home/vagrant/workspace/util/node_modules/os-tmpdir/package.json.3093922551' npm WARN rollback Rolling back iconv-lite@0.4.24 failed (this is probably harmless): ETXTBSY: text file is busy, unlink '/home/vagrant/workspace/util/node_modules/iconv-lite/package.json.440022313' npm WARN rollback Rolling back signal-exit@3.0.2 failed (this is probably harmless): ETXTBSY: text file is busy, unlink '/home/vagrant/workspace/util/node_modules/signal-exit/package.json.1953790324' npm WARN rollback Rolling back restore-cursor@2.0.0 failed (this is probably harmless): ETXTBSY: text file is busy, unlink '/home/vagrant/workspace/util/node_modules/restore-cursor/package.json.2681072870' npm WARN rollback Rolling back cli-cursor@2.1.0 failed (this is probably harmless): ETXTBSY: text file is busy, unlink '/home/vagrant/workspace/util/node_modules/cli-cursor/package.json.592218549' npm WARN rollback Rolling back strip-ansi@4.0.0 failed (this is probably harmless): ETXTBSY: text file is busy, unlink '/home/vagrant/workspace/util/node_modules/strip-ansi/package.json.1086627119' npm WARN rollback Rolling back string-width@2.1.1 failed (this is probably harmless): ETXTBSY: text file is busy, unlink '/home/vagrant/workspace/util/node_modules/string-width/package.json.41340767' npm WARN rollback Rolling back supports-color@5.5.0 failed (this is probably harmless): ETXTBSY: text file is busy, unlink '/home/vagrant/workspace/util/node_modules/supports-color/package.json.1040766757' npm WARN rollback Rolling back chalk@2.4.1 failed (this is probably harmless): ETXTBSY: text file is busy, unlink '/home/vagrant/workspace/util/node_modules/chalk/package.json.1569293108' npm WARN rollback Rolling back symbol-observable@1.0.1 failed (this is probably harmless): ETXTBSY: text file is busy, unlink '/home/vagrant/workspace/util/node_modules/symbol-observable/package.json.338890448' npm WARN rollback Rolling back through@2.3.8 failed (this is probably harmless): ETXTBSY: text file is busy, unlink '/home/vagrant/workspace/util/node_modules/through/package.json.73716312' npm WARN rollback Rolling back rxjs@5.5.12 failed (this is probably harmless): ETXTBSY: text file is busy, unlink '/home/vagrant/workspace/util/node_modules/rxjs/package.json.3676372307' npm WARN rollback Rolling back tmp@0.0.33 failed (this is probably harmless): ETXTBSY: text file is busy, unlink '/home/vagrant/workspace/util/node_modules/tmp/package.json.3003873658' npm WARN rollback Rolling back external-editor@2.2.0 failed (this is probably harmless): ETXTBSY: text file is busy, unlink '/home/vagrant/workspace/util/node_modules/external-editor/package.json.1602141078' npm WARN rollback Rolling back universalify@0.1.2 failed (this is probably harmless): ETXTBSY: text file is busy, unlink '/home/vagrant/workspace/util/node_modules/universalify/package.json.909124771' npm WARN rollback Rolling back util@0.10.4 failed (this is probably harmless): ETXTBSY: text file is busy, unlink '/home/vagrant/workspace/util/node_modules/util/package.json.2024313286' npm WARN rollback Rolling back figlet@1.2.0 failed (this is probably harmless): ETXTBSY: text file is busy, unlink '/home/vagrant/workspace/util/node_modules/figlet/package.json.2604531958' npm WARN rollback Rolling back fs@0.0.1-security failed (this is probably harmless): ETXTBSY: text file is busy, unlink '/home/vagrant/workspace/util/node_modules/fs/package.json.3860476710' npm WARN rollback Rolling back fs-extra@5.0.0 failed (this is probably harmless): ETXTBSY: text file is busy, unlink '/home/vagrant/workspace/util/node_modules/fs-extra/package.json.1989459557' npm WARN rollback Rolling back inquirer@5.2.0 failed (this is probably harmless): ETXTBSY: text file is busy, unlink '/home/vagrant/workspace/util/node_modules/inquirer/package.json.549859635' npm WARN rollback Rolling back ncp@2.0.0 failed (this is probably harmless): ETXTBSY: text file is busy, unlink '/home/vagrant/workspace/util/node_modules/ncp/package.json.3099104780' npm WARN rollback Rolling back os@0.1.1 failed (this is probably harmless): ETXTBSY: text file is busy, unlink '/home/vagrant/workspace/util/node_modules/os/package.json.2422106571' npm WARN rollback Rolling back path@0.12.7 failed (this is probably harmless): ETXTBSY: text file is busy, unlink '/home/vagrant/workspace/util/node_modules/path/package.json.2041340382' npm WARN devutil@1.0.0 No repository field.

npm ERR! path /home/vagrant/workspace/util/node_modules/ansi-escapes/package.json.3141879745 npm ERR! code ETXTBSY npm ERR! errno -26 npm ERR! syscall rename npm ERR! ETXTBSY: text file is busy, rename '/home/vagrant/workspace/util/node_modules/ansi-escapes/package.json.3141879745' -> '/home/vagrant/workspace/util/node_modules/ansi-escapes/package.json'

npm ERR! A complete log of this run can be found in: npm ERR! /home/vagrant/.npm/_logs/2018-09-27T01_59_09_533Z-debug.log

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/acloudfan/HLF-Vagrant-Dev-Setup/issues/2#issuecomment-424935315, or mute the thread https://github.com/notifications/unsubscribe-auth/AOmhq0EX9rmFq7sS6-heDrNJimdC36Spks5ufDa-gaJpZM4UyAAT .