Category : mounted-volumes

I have to containers which define in the docker-compose file nmaster: build: context: dotNet/ dockerfile: Src/My.Api/Api/Dockerfile restart: always ports: – ’80:80′ volumes: – app-volume:/dotNet/Logs and collector otel-collector: image: otel/opentelemetry-collector-contrib:0.22.0 command: ["–config=/etc/otel-collector-config.yaml", ""] volumes: – ./otel-collector-config.yaml:/etc/otel-collector-config.yaml – app-volume:/dotNet/Logs ports: – "4317:4317" – "8888:8888" – "8889:8889 Shared volume volumes: app-volume: inside otel-collector-config.yaml try to read that log ..

Read more

I’m getting this error, even though I’m not running an os.walk or any other kind of file read/write operation with python. When I’m running find -L ./ -mindepth 15 I find the files involved in the loop. Locally is the /usr/bin/X11 and at server I’m getting the following: error walking file system: OSError [Errno 40] ..

Read more

I am relatively new to Docker and I am attempting to build a single custom image from my Dockerfile using docker-compose. Dockerfile FROM continuumio/anaconda3 #create a directory WORKDIR /home/docker/qts #copy the dependencies file COPY ./requirements.txt . #install necessary packages RUN pip install –no-cache-dir -r requirements.txt #Expose ports EXPOSE 5000 docker-compose.yml version: "3.8" services: pyimg: build: ..

Read more

Starting with an empty directory, I created this docker-compose.yml: version: ‘3.9’ services: neo4j: image: neo4j:3.2 restart: unless-stopped ports: – 7474:7474 – 7687:7687 volumes: – ./conf:/conf – ./data:/data – ./import:/import – ./logs:/logs – ./plugins:/plugins environment: # Raise memory limits – NEO4J_dbms_memory_pagecache_size=1G – NEO4J_dbms.memory.heap.initial_size=1G – NEO4J_dbms_memory_heap_max__size=1G Then I add the import directory, which contains data files I ..

Read more

Ater too much googling I can’t find a solution. My docker-compose.yml file version: ‘2’ services: system: build: . container_name: apo_api volumes: – ./:/var/www/html ports: – ‘1122:80’ The container builds and runs successfully but the /var/www/html folder is empty when sshed into the container. Any kind of help is appreciated. Thank you very much Source: Docker ..

Read more

I am struggling to understand the following syntax in docker-compose yml for the volumes. cache: build: ../../ dockerfile: docker/dev/Dockerfile volumes: – /tmp/cache:/cache – /build entrypoint: "true" The first volume /cache is clearly mounted to physical folder /tmp/cache on the host. Where is it mounted the second one /build instead? I could not find good references. ..

Read more