Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

HDP Sandobox Deploying in docker-ce running on windows 10

HDP Sandobox Deploying in docker-ce running on windows 10

New Contributor
Hello Dear Sir Or Madam

Beforehand thanks for your gently revision of my matter:

1. System environment

windows 10 enterprise 64 bits

docker-ce 18.06

2. Executing with git bash

cd /c/Users/me/Downloads/HDP_2.6.5
$ sh docker-deploy-hdp265.sh

3. Error

C:\Program Files\Docker\Docker\Resources\bin\docker.exe: Error response from daemon: OCI runtime create failed: container_linux.go:348: starting container process caused "process_linux.go:402: container init caused \"rootfs_linux.go:58: mounting \\\"/host_mnt/c/Users/v504165/Downloads/HDP_2.6.5/assets/nginx.conf\\\" to rootfs \\\"/var/lib/docker/overlay2/19100a653bd011ffbfd5fb0ffb3945eba2923a22d2a17c71772806d136325443/merged\\\" at \\\"/var/lib/docker/overlay2/19100a653bd011ffbfd5fb0ffb3945eba2923a22d2a17c71772806d136325443/merged/etc/nginx/nginx.conf\\\" caused \\\"not a directory\\\"\"": unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type.

3. Full log

$ sh docker-deploy-hdp265.sh
+ registry=hortonworks
+ name=sandbox-hdp
+ version=2.6.5
+ proxyName=sandbox-proxy
+ proxyVersion=1.0
+ flavor=hdp
+ echo hdp
+ mkdir -p sandbox/proxy/conf.d
+ mkdir -p sandbox/proxy/conf.stream.d
+ docker pull hortonworks/sandbox-hdp:2.6.5
2.6.5: Pulling from hortonworks/sandbox-hdp
Digest: sha256:0b34fa5cb197717828d6ffe547c23ad9b1c09f3b953e570e37f6f09809fbf3ba
Status: Image is up to date for hortonworks/sandbox-hdp:2.6.5
+ docker pull hortonworks/sandbox-proxy:1.0
1.0: Pulling from hortonworks/sandbox-proxy
Digest: sha256:42e4cfbcbb76af07e5d8f47a183a0d4105e65a1e7ef39fe37ab746e8b2523e9e
Status: Image is up to date for hortonworks/sandbox-proxy:1.0
+ '[' hdp == hdf ']'
+ '[' hdp == hdp ']'
+ hostname=sandbox-hdp.hortonworks.com
++ docker images
++ grep hortonworks/sandbox-hdp
++ awk '{print $2}'
+ version=2.6.5
+ docker network create cda
+ docker run --privileged --name sandbox-hdp -h sandbox-hdp.hortonworks.com --network=cda --network-alias=sandbox-hdp.hortonworks.com -d hortonworks/sandbox-hdp:2.6.5
c27cad6f7ca1aee8a44e3733c1dc54b7bee970577ae5110ef2cc672f66ee2b16
+ echo ' Remove existing postgres run files. Please wait'
 Remove existing postgres run files. Please wait
+ sleep 2
+ docker exec -t sandbox-hdp sh -c 'rm -rf /var/run/postgresql/*; systemctl restart postgresql;'
+ sed s/sandbox-hdp-security/sandbox-hdp/g assets/generate-proxy-deploy-script.sh
+ mv -f assets/generate-proxy-deploy-script.sh.new assets/generate-proxy-deploy-script.sh
+ chmod +x assets/generate-proxy-deploy-script.sh
+ assets/generate-proxy-deploy-script.sh
+ uname
+ grep MINGW
MINGW64_NT-10.0
+ sed -i -e 's/\( \/[a-z]\)/\U\1:/g' sandbox/proxy/proxy-deploy.sh
+ chmod +x sandbox/proxy/proxy-deploy.sh
+ sandbox/proxy/proxy-deploy.sh
sandbox-proxy
ad4b3039b9c6260b750b648d264cebd1ac5d8afd4193705b20635e54da65268f
C:\Program Files\Docker\Docker\Resources\bin\docker.exe: Error response from daemon: OCI runtime create failed: container_linux.go:348: starting container process caused "process_linux.go:402: container init caused \"rootfs_linux.go:58: mounting \\\"/host_mnt/c/Users/me/Downloads/HDP_2.6.5/assets/nginx.conf\\\" to rootfs \\\"/var/lib/docker/overlay2/19100a653bd011ffbfd5fb0ffb3945eba2923a22d2a17c71772806d136325443/merged\\\" at \\\"/var/lib/docker/overlay2/19100a653bd011ffbfd5fb0ffb3945eba2923a22d2a17c71772806d136325443/merged/etc/nginx/nginx.conf\\\" caused \\\"not a directory\\\"\"": unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type.
3 REPLIES 3

Re: HDP Sandobox Deploying in docker-ce running on windows 10

New Contributor

I have the same setup and same error. Seems to be the classic problem with mounting host volumes in docker on windows. There's one gigantic thread about it on the docker forums.

https://forums.docker.com/t/volume-mounts-in-windows-does-not-work/10693/168

Highlighted

Re: HDP Sandobox Deploying in docker-ce running on windows 10

New Contributor

My problem was due to old credentials cached in the docker host. If you have updated your computer credentials (ie changed password) since you shared your drives in the docker settings you need to do the following.

Try

  1. Go into docker settings->shared drives and click "reset credentials".
  2. Reshare the drive using your current logon credentials.
  3. Restart docker.
  4. Start the containers again ie "docker start sandbox-hdp" and "docker start sandbox-proxy".

Then you ought to be able to login at localhost:8080.

Good luck!

Re: HDP Sandobox Deploying in docker-ce running on windows 10

New Contributor

Thanks Magnus. I had the same issue and this resolved it.