Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on Creating Docker Services #3

Closed
jedielson opened this issue Jul 22, 2017 · 3 comments
Closed

Error on Creating Docker Services #3

jedielson opened this issue Jul 22, 2017 · 3 comments
Assignees
Labels

Comments

@jedielson
Copy link

I'm trying setup an EnterpriseLog, but when I run docker-compose up i get some errors

docker-compose up
Creating network "enterpriseapplicationlog_log" with driver "bridge"
Creating volume "enterpriseapplicationlog_mq_data" with default driver
Pulling elasticsearch (docker.elastic.co/elasticsearch/elasticsearch:5.3.1)...
5.3.1: Pulling from elasticsearch/elasticsearch
ec37562cf8fa: Pull complete
3f5b02e577c3: Pull complete
e4c7c0eb9289: Pull complete
e8008e68933d: Pull complete
1cfca4b45f64: Pull complete
77148a7a523b: Pull complete
c93eabd5eff3: Pull complete
d82d8a15579f: Pull complete
0f2b8d9540a0: Pull complete
5c9aa0d9a460: Pull complete
Digest: sha256:94ebca9d6316902596ceef6934161be39cca04885fcf07c8ab3feb04c02b4933
Status: Downloaded newer image for docker.elastic.co/elasticsearch/elasticsearch:5.3.1
Pulling kibana (docker.elastic.co/kibana/kibana:5.3.1)...
5.3.1: Pulling from kibana/kibana
dd5dd61c1a5a: Pull complete
16909a4b1f9f: Pull complete
29c53e794bb6: Pull complete
a9ed6f426f17: Pull complete
a3ed95caeb02: Pull complete
f3545d054f4a: Pull complete
3411b2e7dcef: Pull complete
697d9c974fd5: Pull complete
dd48b564831a: Pull complete
8cfa3486163f: Pull complete
b957c3f00ce3: Pull complete
cfff1f6ab196: Pull complete
accb4f5b19b9: Pull complete
34c8c265a4e1: Pull complete
de16797c180a: Pull complete
5c3cacf89d57: Pull complete
Digest: sha256:717a00a99505c6058f916966d69cbe32c7664c7c1803fa9c737a27b804c255d0
Status: Downloaded newer image for docker.elastic.co/kibana/kibana:5.3.1
Pulling rabbitmq (rabbitmq:3-management-alpine)...
3-management-alpine: Pulling from library/rabbitmq
88286f41530e: Pull complete
f37b1a2424b3: Pull complete
2799929042f7: Pull complete
1a0ac93c08db: Pull complete
84a4909e74e3: Pull complete
9ec0566f7968: Pull complete
b829637e8777: Pull complete
422751327de1: Pull complete
c3910da26c46: Pull complete
cb6c881d9908: Pull complete
Digest: sha256:a82f60bcde44591ead0f58014f184f1de95b21a0db252a0aaaa359d8caf8aaf1
Status: Downloaded newer image for rabbitmq:3-management-alpine
Pulling logstash (docker.elastic.co/logstash/logstash:5.3.1)...
5.3.1: Pulling from logstash/logstash
b6f892c0043b: Pull complete
55010f332b04: Pull complete
2955fb827c94: Pull complete
3deef3fcbd30: Pull complete
cf9722e506aa: Pull complete
0375e6c582e1: Pull complete
a77e2809deb6: Pull complete
6672e5dc5c52: Pull complete
8e372a214f1e: Pull complete
45beb88dd049: Pull complete
fd10419564ab: Pull complete
2f46d28c70e2: Pull complete
bab1cf65d47a: Pull complete
0f51d6574514: Pull complete
8d6dd4f70d6c: Pull complete
a63a46600b6e: Pull complete
Digest: sha256:2a76bb75a67d90df5c4805b1f94b6d9a5baacd960044682e514c734716ef4d64
Status: Downloaded newer image for docker.elastic.co/logstash/logstash:5.3.1
Creating RabbitMQ ...
Creating ElasticSearch ...
Creating RabbitMQ
Creating ElasticSearch ... error

ERROR: for ElasticSearch  Cannot start service elasticsearch: oci runtime error: container_linux.go:262: starting container process caused "process_linux.go:339: container init caused \"rootfs_linux.go:57: mounting \\\"/C/Users/jedi/Documents/SourceCodes/Jedi/estudos/EnterpriseApplicationLog/product.elasticsearch.yml\\\" to rootfs \\\"/var/lib/docker/overlay2/d419413038d3fbc7f8a786a70c0327057e2c778d9fa1b0d0cb0493c9bdb0bb9a/merged\\\" at \\\"/var/lib/docker/overlay2/d419413038d3fbc7f8a786a70c0327057e2c778d9fa1b0d0cb0493c9bdb0bb9a/merged/usr/share/elasticsearch/config/elasticsearch.yml\\\" caused \\\"not a directory\\\"\""
: 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

ERROR: for elasticsearch  Cannot start service elasticsearch: oci runtime error: container_linux.go:262: starting container process caused "process_linux.go:339: container init caused \"rootfs_linux.go:57: mounting \\\"/C/Users/jedi/Documents/SourceCodes/Jedi/estudos/EnterpriseApplicationLog/product.elasticsearch.yml\\\" to rootfs \\\"/var/lib/docker/overlay2/d419413038d3fbc7f8a786a70c0327057e2c778d9fa1b0d0cb0493c9bdb0bb9a/merged\\\" at \\\"/var/lib/docker/overlay2/d419413038d3fbc7f8a786a70c0327057e2c778d9fa1b0d0cb0493c9bdb0bb9a/merged/usr/share/elasticsearch/config/elasticsearch.yml\\\" caused \\\"not a directory\\\"\""
: 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
ERROR: Encountered errors while bringing up the project.

Here is my docker info

Containers: 2
 Running: 1
 Paused: 0
 Stopped: 1
Images: 6
Server Version: 17.06.0-ce
Storage Driver: overlay2
 Backing Filesystem: extfs
 Supports d_type: true
 Native Overlay Diff: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: bridge host ipvlan macvlan null overlay
 Log: awslogs fluentd gcplogs gelf journald json-file logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: cfb82a876ecc11b5ca0977d1733adbe58599088a
runc version: 2d41c047c83e09a6d61d464906feb2a2f3c52aa4
init version: 949e6fa
Security Options:
 seccomp
  Profile: default
Kernel Version: 4.9.36-moby
Operating System: Alpine Linux v3.5
OSType: linux
Architecture: x86_64
CPUs: 2
Total Memory: 1.934GiB
Name: moby
ID: ATNP:NJHF:QE67:EKZL:HYBQ:M7EZ:BKZE:AXNH:DH2W:2CYR:HOMT:NQYQ
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): true
 File Descriptors: 24
 Goroutines: 35
 System Time: 2017-07-22T19:30:13.4103053Z
 EventsListeners: 0
Registry: https://index.docker.io/v1/
Experimental: true
Insecure Registries:
 127.0.0.0/8
Live Restore Enabled: false

Docker Version

Docker version 17.06.0-ce, build 02c1d87

And win version


Nome do sistema operacional:               Microsoft Windows 10 Pro
Versão do sistema operacional:             10.0.15063 N/A compilação 15063
@luizcarlosfaria
Copy link
Owner

This erros address file system volume binds.
I'm trying to understand why your Storage Driver is overlay2 instead aufs

@luisrjbr
Copy link

luisrjbr commented Feb 8, 2019

Hi! Seems to be the same error to me:

ERROR: for ElasticSearch  Cannot start service elasticsearch: 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/luis.augusto/EnterpriseApplicationLog/product.elasticsearch.yml\\\" to rootfs \\\"/var/lib/docker/overlay2/d7d942bc1a807be3eb56ef6c86ddd30f20218c883fbcb72a63cf7d7a688add7c/merged\\\" at \\\"/var/lib/docker/overlay2/d7d942bc1a807be3eb56ef6c86ddd30f20218c883fbcb72a63cf7d7a688add7c/merged/usr/share/elasticsearch/config/elasticsearch.yml\\\" 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

ERROR: for elasticsearch  Cannot start service elasticsearch: 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/luis.augusto/EnterpriseApplicationLog/product.elasticsearch.yml\\\" to rootfs \\\"/var/lib/docker/overlay2/d7d942bc1a807be3eb56ef6c86ddd30f20218c883fbcb72a63cf7d7a688add7c/merged\\\" at \\\"/var/lib/docker/overlay2/d7d942bc1a807be3eb56ef6c86ddd30f20218c883fbcb72a63cf7d7a688add7c/merged/usr/share/elasticsearch/config/elasticsearch.yml\\\" 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
ERROR: Encountered errors while bringing up the project.

Docker info:

docker info
Containers: 2
 Running: 1
 Paused: 0
 Stopped: 1
Images: 15
Server Version: 18.03.1-ce
Storage Driver: overlay2
 Backing Filesystem: extfs
 Supports d_type: true
 Native Overlay Diff: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: bridge host ipvlan macvlan null overlay
 Log: awslogs fluentd gcplogs gelf journald json-file logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 773c489c9c1b21a6d78b5c538cd395416ec50f88
runc version: 4fc53a81fb7c994640722ac585fa9ca548971871
init version: 949e6fa
Security Options:
 seccomp
  Profile: default
Kernel Version: 4.9.87-linuxkit-aufs
Operating System: Docker for Windows
OSType: linux
Architecture: x86_64
CPUs: 2
Total Memory: 2.915GiB
Name: linuxkit-00155d65591c
ID: FKZM:HZUJ:DWKO:MZAP:XZS7:NDTZ:B7BF:PY7Y:RJDN:SQE6:DYMO:PDKS
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): true
 File Descriptors: 29
 Goroutines: 49
 System Time: 2019-02-08T17:33:07.2198833Z
 EventsListeners: 2
Registry: https://index.docker.io/v1/
Labels:
Experimental: true
Insecure Registries:
 127.0.0.0/8
Live Restore Enabled: false

Regards,

@luizcarlosfaria
Copy link
Owner

luizcarlosfaria commented Feb 21, 2019

@luisrjbr do you read this disclaimer?

Do you configure COMPOSE_CONVERT_WINDOWS_PATHS environment variable?

How to use

On Windows, set COMPOSE_CONVERT_WINDOWS_PATHS=1 environment variable to solve issue reported on issue #1829 at docker/for-win repo:

  • Bash: export COMPOSE_CONVERT_WINDOWS_PATHS=1
  • Cmd: set COMPOSE_CONVERT_WINDOWS_PATHS=1
  • PowerShell: $Env:COMPOSE_CONVERT_WINDOWS_PATHS=1
git clone https://github.com/docker-gallery/EnterpriseApplicationLog.git
cd ./EnterpriseApplicationLog
docker-compose up

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants