Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upOCI runtime create failed: container_linux.go:349: starting container process caused "process_linux.go:449: container init caused \"rootfs_linux.go:58: mounting. 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 #2573
Comments
|
This error is produced if you're trying to bind-mount a path from the host that does not exist on the host where the docker daemon runs. When using the short-hand ( Given that this is not a bug, I'm closing this issue, but feel free to continue the conversation |
Description
Steps to reproduce the issue:
Describe the results you received:
Removing test-setup_apache-ui_1
test-setup_db_1 is up-to-date
Starting test-setup_tomcat-ui_1 ... error
Recreating cfb7dcf47a14_test-setup_apache-ui_1 ...
ERROR: for test-setup_tomcat-ui_1 Cannot start service tomcat-ui: OCI runtime create failed: container_linux.go:349: starting container process caused "process_linux.go:449: container init caused "rootfs_linux.go:58: mounting \"/hms/deployments/tomcat-10.0/conf/server.xml\" to rootfs \"/var/lib/docker/overlay2/457ea1d47a3f23205d66a220187b4409bdf019ba55fbf2731d0098ace4863f7d/merged\" at \"/var/lib/docker/overlay2/457ea1d47a3f23205d66a220187b4409bdf019ba55fbf2731d0098ace4863f7d/merged/usr/local/tomcat/conf/server.xml\" caused \"not a directory\""": unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified hosRecreating cfb7dcf47a14_test-setup_apache-ui_1 ... error
ERROR: for cfb7dcf47a14_test-setup_apache-ui_1 Cannot start service apache-ui: OCI runtime create failed: container_linux.go:349: starting container process caused "process_linux.go:449: container init caused "rootfs_linux.go:58: mounting \"/hms/deployments/apache-2.4.43/conf/httpd.conf\" to rootfs \"/var/lib/docker/overlay2/93d7b8c49c2b5a990dcca48311a9259945e411759cfbc3b6b60afaf67f97722a/merged\" at \"/var/lib/docker/overlay2/93d7b8c49c2b5a990dcca48311a9259945e411759cfbc3b6b60afaf67f97722a/merged/usr/local/apache2/conf/httpd.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
ERROR: for tomcat-ui Cannot start service tomcat-ui: OCI runtime create failed: container_linux.go:349: starting container process caused "process_linux.go:449: container init caused "rootfs_linux.go:58: mounting \"/hms/deployments/tomcat-10.0/conf/server.xml\" to rootfs \"/var/lib/docker/overlay2/457ea1d47a3f23205d66a220187b4409bdf019ba55fbf2731d0098ace4863f7d/merged\" at \"/var/lib/docker/overlay2/457ea1d47a3f23205d66a220187b4409bdf019ba55fbf2731d0098ace4863f7d/merged/usr/local/tomcat/conf/server.xml\" 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 apache-ui Cannot start service apache-ui: OCI runtime create failed: container_linux.go:349: starting container process caused "process_linux.go:449: container init caused "rootfs_linux.go:58: mounting \"/hms/deployments/apache-2.4.43/conf/httpd.conf\" to rootfs \"/var/lib/docker/overlay2/93d7b8c49c2b5a990dcca48311a9259945e411759cfbc3b6b60afaf67f97722a/merged\" at \"/var/lib/docker/overlay2/93d7b8c49c2b5a990dcca48311a9259945e411759cfbc3b6b60afaf67f97722a/merged/usr/local/apache2/conf/httpd.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
ERROR: Encountered errors while bringing up the project.
Describe the results you expected:
Additional information you deem important (e.g. issue happens only occasionally):
Output of
docker version:Output of
docker info: