For my project I am having issues with docker in docker. Short version of what I do: docker run -v /var/run/docker.sock:/var/run/docker.sock -v /path/to/folder:/path/to/folder –privileged=true –cap-add=CAP_IPC_LOCK –network host -it someimage /bin/bash someimage is based on Ubunut. My host is a Mac. I am mounting /path/to/folder. I also want the docker inside the docker to have access ..
I am learning about docker and docker compose and I am facing the next issue when I try to run docker-compose up. Let me show my docker-compose.yml services: proxy: image: nginx ports: – ’80:80′ volumes: – ./nginx.conf:/etc/ningx/conf.d/default.conf:ro And this is the error I face: nginx.conf:/etc/ningx/conf.d/default.conf:ro has incorrect format, should be external:internal[:mode] Things I tried: I ..
I’m trying to build my own image based on image from Docker Hub What I want to do is to add some new files to existing file system on image I created Dockerfile with the following content: from wordpress copy . /var/www/html/wp-content/plugins Here I’m trying to fetch official wordpress image and then copy some files ..
I want to set a hard limit for the volume to grow. How can i do it with docker-compose? Right now i have zfs as the fs for /var/lib/docker. My current volume part looks like this: volumes: vol1: driver_opts: size: "2G" But this does give me an error: quota size requested but no quota support ..
We are creating openSource tool “Scanner” which scans files within specific directory after user gives path to that folder/directory as input (locally) It’s working perfectly but now we need to containerize it using Docker and the issue is this that we cannot bind the whole root/system while building image (because in most of the cases, ..
The Problem: can’t generate/create files on mounted volumes in docker that is not own by root. Throwing permission denied errors when I create and push my user to docker-compose as well. Scenario: version: ‘3.4’ services: app: image: ubuntu:latest command: /home/john/clone_repository_and_generate_reports.sh volumes: – "/home/john/:/home/john/" environment: – NODE_ENV=production env_file: – ./.config.env My docker-compose.yml file calls to simple ..
I am currently running a custom built docker container using a docker compose file. The docker compose file looks as follows: version: ‘2’ services: ubuntu: privileged: true image: custom_docker_image:17 container_name: custom_docker_container command: ‘/usr/bin/supervisord’ volumes: – /custom_docker_path/public:/public – /custom_docker_path/data/logs:/data/logs – /custom_docker_path/var/log:/var/log – /custom_docker_path/etc/nginx:/etc/nginx – /custom_docker_path/etc/supervisor:/etc/supervisor – /etc/letsencrypt:/etc/letsencrypt ports: – ‘9202:9200’ The docker container runs services and ..
I have a problem implementing docker-compose.yml file for MS SQL Database container in Docker. I tried to set up "setup.sql" file within "volumes:" parameter but it did not worked out for me. Maybe wrong path? How to correctly set up empty database using ready .sql file stored on local host computer? Here is the code ..
Apologies if this is a dumb question but… I am still getting to understand docker, but can’t seem to find an answer to when you would use one of the following over the other in a docker-compose.yaml file: e.g. volumes: – type: bind source: /c/docker/tool/log target: /opt/distribution/log OR volumes: – "c:/docker/tool/log:/opt/distribution/log" Are the above two ..
I pulled httpd: docker pull httpd. When I started the container: docker run –name httpd –rm -p 80:80 -v $(pwd)/htdocs:/htdocs -d httpd I see the original index.html page even if in my htdocs I put my personal index page. Can someone help me? Source: Docker..