Category : docker-volume

I’m running docker-compose up –build command (my first time) in Windows environment, but getting this error: invalid volume specification: ‘C:Users<username>AppDataRoamingASP.NETHttps:/root/.aspnet/https:ro’ the docker-compose.yml: version: ‘3.4’ services: webfrontend: build: context: . dockerfile: WebFrontEnd/Dockerfile depends_on: [ mywebapi ] ports: – "4012:80" mywebapi: build: context: . dockerfile: MyWebAPI/Dockerfile ports: – "5541:80" WebFrontEnd/Dockerfile: #See https://aka.ms/containerfastmode to understand how Visual Studio ..

Read more

I start nginx through docker-compose -f nginx.yml up -d, but on some machines, /data/nginx/ is not mounted, while nginx.conf is mounted. Following is my nginx.yml file version: "3.7" services: nginx: image: 172.x.x.x:5555/nginx:latest container_name: nginx-server volumes: – /home/nginx/nginx.conf:/etc/nginx/nginx.conf – /data/nginx:/data/nginx ports: – 1234:80 restart: always Here is docker inspect "Mounts": [ { "Type": "bind", "Source": "/home/nginx/nginx.conf", ..

Read more

According to https://docs.microsoft.com/en-us/virtualization/windowscontainers/manage-containers/persistent-storage ("Named Volume" section) running containers on Windows Server with specified volume means that target path is converted to lowercase. So, are there any workarounds to prevent it from doing it? I want to create volume on Windows Server -v unwound:/app/MyData and don’t want it to be converted in -v unwound:/app/mydata Source: Docker ..

Read more