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 ..
I have mounted a windows share in my host linux and I am trying to mount the host path into my Docker container. I am trying to create a container using python sdk and I able to mount the path using privileged= True. But I have read that using privileged= True is not safe. So ..
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] ..
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: ..
i have an application that record live traffic and replay them. https://github.com/buger/goreplay it is a simple app to use, but when i tried to use it with kubernetes i get a problem with persisting data in volumes. i want to do this : in pod number one i use the goreplay container and other container ..
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 ..
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 ..
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. ..
Hi this might be flagged as a duplicate but none of the other solutions have really worked for me. So I have a directory structure as (code is top most with the rest subfolders and subfiles) code/ task_queue/ tasks/ scheduler/ static/ core/ run_scheduler.sh scheduler.cfg scheduler.cfg is a config file in which secrets and variables are ..
I am very new to docker and I am trying to find the best way to connect a docker container on a linux server to a shared folder on a windows system. What I am doing right now is first to share the desired folder on the windows system. Then I mount the shared folder ..