Docker compose up error: container-linux.go: 348
When I typed "docker-compose up", I got this error: Starting elasticsearch-1 ... error
ERROR: for elasticsearch-1 Cannot start service elasticsearch-1: b'OCI runtime create failed: container_linux.go:348: starting container process caused "process_linux.go:402: container init caused \"rootfs_linux.go:58: mounting \\\"/c/Users/user/Desktop/data/elasticsearch.yml\\\" to rootfs \\\"/mnt/sda1/var/lib/docker/aufs/mnt/3ec70a7ad26a47f6537aed2ac091eb2507dfb4de983183b0e669832229f948d7\\\" at \\\"/mnt/sda1/var/lib/docker/aufs/mnt/3ec70a7ad26a47f6537aed2ac091eb2507dfb4de983183b0e669832229f948d7/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'
Docker-compose.yml contains the following:
elasticsearch-1: image: elasticsearch container_name: elasticsearch-1 ports: - "9200:9200" - "9300:9300" volumes: - ./data/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml command: elasticsearch kibana-frontend: image: kibana:latest container_name: kibana-frontend ports: - "5601:5601" links: - elasticsearch-1:elasticsearch
Could you please help me solve this error? Any help will be appreciated Thank you in advance
I had the same problem today, and I found the solution for my case in this GitHub Thread:
Cause: I had to change my Windows password today Solution: The error stopped after going into Docker settings -> Shared Drives, un-selecting my drive (+ Apply), restarting Docker app and then re-selecting (+ Apply).
Kudos to danielcgithub!
OCI runtime create failed: container_linux.go:348: starting container , docker-compose up -d 报如下错误： tidb-docker-compose_pd1_1 is OCI runtime create failed: container_linux.go:348: starting container process ERROR: for tidb-docker-compose_prometheus_1 Cannot start 2018/07/19 09: 49:47.595 printer.go:44: [info] GoVersion: go version go1.10.2 linux/amd64 tidb-docker-compose_tispark-slave0_1 is up-to-date. ERROR: for tidb-docker-compose_dashboard-installer_1 Cannot start service dashboard-installer: OCI runtime create
Clone (or download the ZIP) of the whole project from GIT and start the docker inside the project folder:
#git clone https://github.com/sandeep/photosearch/?utm_source=sandeepchivukula.com&utm_medium=blog&utm_campaign=photosearch #cd photosearch #docker compose up
OCI runtime exec failed: exec failed: container_linux.go:348: starting , in container: OCI runtime exec failed: exec failed: container_linux.go:348: starting container Got this within a docker-compose run on Ubuntu 18.04: I ran into the same error while running the command docker exec -it jenkins bash on an� Hi, Has anyone resolved this issue. I am getting the same error! I ain't using docker-compose, I am unable to build a docker image in my Mac. OCI runtime create failed: container_linux.go:348: starting container process caused "exec: \"/bin/sh\": stat /bin/sh: no such file or directory": unknown. The scratch image is "empty".
You can not bind a volume on a single file.
Either you bind the entire directory:
elasticsearch-1: image: elasticsearch container_name: elasticsearch-1 ports: - "9200:9200" - "9300:9300" volumes: - ./data/:/usr/share/elasticsearch/config/ command: elasticsearch
Or you can use
docker configs (see further documentation here):
elasticsearch-1: image: elasticsearch container_name: elasticsearch-1 ports: - "9200:9200" - "9300:9300" configs: - source: elasticsearch_config target: /usr/share/elasticsearch/config/elasticsearch.yml command: elasticsearch configs: elasticsearch_config: file: ./data/elasticsearch.yml
Exec user process caused exec format error docker compose, 7. . go:348: starting container process caused "exec. go:211: exec user Docker Compose 'docker-compose' is in 'Community' repository since Alpine Linux� How to launch a Docker container for MySQL? 5 days ago; docker: driver failed programming external connectivity on endpoint webserver 5 days ago; Delete multiple docker images at a time. Jul 6 ; Error: Failed to download metadata for repo 'AppStream' Jun 22 ; Failed to get D-Bus connection: Operation not permitted. Jun 22
Docker container run fails with OCI runtime failure on 18.09, Docker container run fails with OCI runtime failure on 18.09. Article ID: KB000957 . ee. linux docker: Error response from daemon: OCI runtime create failed: container_linux.go:344: starting container process caused "exec: 3.10.0-514 and earlier, prevents containerd from accessing resources in container namespaces. Running docker-compose up -d starts the containers in the background and leaves them running. If there are existing containers for a service, and the service’s configuration or image was changed after the container’s creation, docker-compose up picks up the changes by stopping and recreating the containers (preserving mounted volumes).
Can't seem to mount file - Open Source Registry, Unfortunately, when I try to mount the nginx.conf as directed, I get this error: ERROR: for nginx: OCI runtime create failed: container_linux.go:348: starting container process caused and is the expected type ERROR: Encountered errors while bringing up the project. Here's my compose file: I'm running on a Linux Vm. When trying to launch a built container with docker-compose up I'm getting an error:. ERROR: for app Cannot start service app: invalid header field value "oci runtime error: container_linux.go:247: starting container process caused \"exec: \\\"script/docker-entrypoint.sh\\\": stat script/docker-entrypoint.sh: no such file or directory\" " ERROR: compose.cli.main.main: Encountered errors while
Install Compose on Linux systems. On Linux, you can download the Docker Compose binary from the Compose repository release page on GitHub.Follow the instructions from the link, which involve running the curl command in your terminal to download the binaries.
- I have placed the file docker-compose.yml on the destkop where I right click and choose "Git Bash Here" then I just type " docker compose up " and i get the error
- After this, I notice that a new folder called "data" is created on the desktop and it contains a folder called "elasticsearch.yml" but this folder is empty
- Thank you a lot for your answer but didn't understand where i should specify the folder path that you mention. Could you please help me more?
- This is the link that I am following to acheive my project: google.com.lb/url?sa=t&source=web&rct=j&url=http://…
- You need to have some file called elasticsearch.yml in your local machine... If you have not this file, then comment this 2 lines and try again... Wich docker image are you using?
volumes: - ./data/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml