mounted-volumes

When using docker option --mount the target folder is seen as not absolute, while there is no issue when using -v

99封情书 提交于 2021-02-11 14:56:25
问题 I am playing around with docker and ran into an issue when mounting docker volumes with --mount instead of -v. It appears to me that the error popping up is not valid, but probably I am missing a small detail here. The path to which I want bind the created image in the container is seen as not absolute in the --mount scenario. I am running Docker on a windows 10 machine I pulled the jenkins/jenkins:lts image and want to spin up 2 containers that use the same configuration. As said before I

How to create separate volumes for each container in docker compose

女生的网名这么多〃 提交于 2020-07-04 00:13:55
问题 I have created a docker image for which I want to run multiple containers. This docker image is dependent on few things which will remain same for all the containers but the only difference will be configuration of the containers. version: '2.4' services: s1: image: testdockerimg:latest volumes: - /home/andrew/Documents/CVAI/configs/s1config.json:/home/andrew/Documents/CVAI/configs/config.json - /home/andrew/Documents/CVAI:/home/andrew/Documents/CVAI/ restart: always mem_limit: 2g s2: image:

Windows Docker mongo container doesn't work with volume mount

佐手、 提交于 2020-01-04 01:37:07
问题 I have the following docker command docker run -v //c/data:/data/db mongo and I get the following error response from docker / mongo MongoDB starting : pid=1 port=27017 dbpath=/data/db 64-bit host=8706cbf1b78f db version v3.4.2 git version: 3f76e40c105fc223b3e5aac3e20dcd026b83b38b OpenSSL version: OpenSSL 1.0.1t 3 May 2016 allocator: tcmalloc modules: none build environment: distmod: debian81 distarch: x86_64 target_arch: x86_64 options: {} wiredtiger_open config: create,cache_size=478M

Docker bind mount volumes do not propagate changes events watched by angular `ng serve` execution

社会主义新天地 提交于 2019-12-13 12:09:46
问题 Following these steps: Define the Dockerfile: FROM node:alpine RUN yarn global add @angular/cli RUN yarn global add node-sass RUN mkdir /volumes WORKDIR /volumes EXPOSE 4200 ENTRYPOINT ["ng"] Build an image from this Dockerfile: docker build -t my_angular_image . Use the image to create a new angular app : // Create the new app docker run --rm --mount type=bind,src=$PWD,dst=/volumes my_angular_image new my-app --directory app --style scss // Change ownership of the generated app sudo chown -R

ASP.NET MVC Website, how to generate background img for div but the img is on a remote drive

纵然是瞬间 提交于 2019-12-12 04:28:22
问题 The View: <div class="project" style="background-image: url('@project.ProjectLogoPath')"> The Model: public List<Projects> GetProjects() { DataContext dbContext = new DataContext(); List<Projects> projects_list = new List<Projects>(); foreach (Project p in dbContext.Projects) { Projects c = new Projects(); c.ProjectName = p.p_name; c.ProjectNumber = p.p_num; c.CompanyName = p.co_name; c.ClientName = p.cl_name; c.ProjectLogoPath = "../../Storage/" + p.co_name + "/Clients/" + p.cl_name + "/" +

nfs volume mount to mysql docker container inside a ubuntu virtualbox fail

浪子不回头ぞ 提交于 2019-12-12 03:23:22
问题 Answered in my comment. Not able to answer my own question. Hence the answer in comment. -----------------------*------------------------ Please help me with the nfs volume mount issue I am facing. I've a nfs file share set-up from freenas server, which I am mounting on a host linux (ubuntu 14.04 server) mount -t nfs -o proto=tcp xxx.xxx.x.xxx:/mnt/freenas/nmedia /mnt/media On the linux host, I've oracle virtualbox (4.3) installed and I've linux virtualbox with shared folder from host /mnt

Orphaned Docker mounted host volumes?

三世轮回 提交于 2019-11-30 10:15:35
问题 I just inspected my /var/lib/docker/volumes folder and discovered that is bursting with folders named as Docker UUIDs each of which contain a config.json file with contents along the lines of {"ID":"UUID","Path":"/path/to/mounted/volume","IsBindMount":true,"Writable":true} where /path/to/mounted/volume is the path to the folder on the host that was mounted on to a docker container with the -v switch at some point. I have such folders dating back to the start of my experiments with Docker, i.e

Orphaned Docker mounted host volumes?

妖精的绣舞 提交于 2019-11-29 19:35:49
I just inspected my /var/lib/docker/volumes folder and discovered that is bursting with folders named as Docker UUIDs each of which contain a config.json file with contents along the lines of {"ID":"UUID","Path":"/path/to/mounted/volume","IsBindMount":true,"Writable":true} where /path/to/mounted/volume is the path to the folder on the host that was mounted on to a docker container with the -v switch at some point. I have such folders dating back to the start of my experiments with Docker, i.e. about 3 weeks ago. The containers in question were stopped and docker rm'ed a long time ago so I