I installed Rancher Server in a Docker. In the configurations steps, as it's necessary, I am trying to add host:
But when I run the command below, it results in the following error:
docker: Error response from daemon: error while creating mount source path '/var/lib/rancher': mkdir /var/lib/rancher: read-only file system.
Related
I am total new to Prometheus and Docker and I having issues in configuring Prometheus with my custom yml file. The latter file is stored at "D:\Projects\Msc-Thesis-Project\tmp". Then I am trying to run the following command.
docker run --net=host \
-v /tmp/prometheus.yml:/etc/prometheus/prometheus.yml \
prom/prometheus
but I receive the following error
docker: Error response from daemon: failed to create shim task: OCI runtime create failed: >runc create failed: unable to start container process: error during container init: error >mounting "/tmp/prometheus.yml" to rootfs at "/etc/prometheus/prometheus.yml": mount >/tmp/prometheus.yml:/etc/prometheus/prometheus.yml (via /proc/self/fd/6), flags: 0x5000: >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.
Don't know what I am doing wrong. Can you please help me???
It's best advisable to write the absolute path, including the letter of your drive that the file is stored, like this,
docker run --net=host -v /mnt/c/tmp/prometheus.yml:/etc/prometheus/prometheus.yml prom/prometheus
Replace /c/ with the letter of your drive, including the names of folders that go beyond that, until you reach the yml file, to get the absolute path.
I am trying to run minikube with the following command:
minikube start --driver=docker
but it keeps giving me this error:
docker: Error response from daemon: error creating overlay mount to
/var/lib/docker/overlay2/a0d24fcc3839411f64db067596135b1402fc1f98252ce3a09cb79b0ff2cabe41-
init/merged: too many levels of symbolic links.
See 'docker run --help'.
I have tried reinstalling the minikube both using chocolatey and .exe file.
Tried stopping and deleting minikube cluster from docker.
Tried reinstalling docker and all of it's services are running properly.
Environment variables have also been set properly for kubectl and minikube.
is there something I'm missing out on..?
The Error
here's the image displaying the running containers using the docker run command
I have a container, it will exit caused by core dumped. However I want to get a log from container path /opt/big/err.log
If I start the container, it will core dumped and exit quickly.
And I tried to mount the directory using docker run -v $(pwd)/log:/opt/big but if I add this mounting there is error
Docker Error response from daemon: OCI runtime create failed
Is there any way to get this log file out?
try to copy using:
docker cp CONTAINER_NAME:/opt/big $(pwd)/log
I need help with magento installation on docker. I have created folder on desktop "development/sources/". After that in sources folder I have cloned repository https://github.com/php-cuong/docker-magento2-lamp. There is yaml file for docker configuration. After running docker-compose up -d command in cli, this error appears:
Recreating d817e559459e_mysql_service ...
Recreating d817e559459e_mysql_service ... error
ERROR: for d817e559459e_mysql_service Cannot start service mysql: error while creating mount source path '/C/User s/Denis/Desktop/development/sources': mkdir /C/Users/Denis/Desktop: permission denied
ERROR: for mysql Cannot start service mysql: error while creating mount source path '/C/Users/Denis/Desktop/devel opment/sources': mkdir /C/Users/Denis/Desktop: permission denied
Encountered errors while bringing up the project.
Mount source path that is listed in error above, was already created manually before I run that command.
permission denied
Right click on Docker icon in tray and select Settings.
Under "Shared Drives" mark drive "C" and apply.
Now it should work. If it doesn't, just restart Docker and it should be working.
I pulled a nginx+php container (https://hub.docker.com/r/imagine10255/centos6-lnmp-php56/) and had started that, it will create a folder to specific location i.e.(D:\xampp\htdocs\centos6-lnmp-php56\home\website), but now i can't restart it, anyone know how to do restart it with out deleting the folder above ?
error message is here:
Error response from daemon: Cannot restart container centos6-lnmp-php56: error while creating mount source path '/c/Users/hkveg/Documents/Kitematic/centos6-lnmp-php56/home/website': mkdir /c/Users/hkveg/Documents/Kitematic/centos6-lnmp-php56: file exists
command tried:
$ docker restart centos6-lnmp-php56
Error response from daemon: Cannot restart container
centos6-lnmp-php56: error while creating mount source path
'/c/Users/hkveg/Documents/Kitematic/centos6-lnmp-php56/home/website':
mkdir /c/Users/hkveg/Documents/Kitematic/centos6-lnmp-php56: file
exists
As same as mysql container:
$ docker restart mysql
Error response from daemon: Cannot restart container mysql: error
while creating mount source path
'/c/Users/hkveg/Documents/Kitematic/mysql/var/lib/mysql': mkdir
/c/Users/hkveg/Documents/Kitematic/mysql: file exists