Category : docker-volume

I have been trying to run the my docker-compose.yml file for 2-3 days and have spent so much time finding the fix on internet but nothing seems to be working. The host computer is Windows 10 and Docker computer is Linux. Created volume using this command: docker volume create –driver local –opt type=none –opt device=’C:UsersKishanDesktopdb’ ..

Read more

Anyone has seen this issue, httpd on docker will render local htdocs files correctly. But if I mount htdocs as volume / persisted volume, it downloads files (text, images, htmls ) instead of rendering. I tried this configuration too, but didn’t work: <Directory "/usr/local/apache2/htdocs"> EnableSendfile On </Directory> Please help! Thansk, Source: Docker..

Read more

How to create a local-registry container, that mounts a volume from the host machine and persist locally all the images that get pulled? I want to not download images more than once, if not necessary, even after the registry (or the whole Docker VM) is being thrown away and recreated. This is useful when having ..

Read more

Might sound weird, but I am trying to get docker-compose to mount directories to a volume I created volumes: – backend-data:/app/migrations/autogen-migrations – backend-data:/app/seeds/autogen-seeds – backend-data:/app/server/public – backend-data:/app/server/src/services/location Only problem is, that instead of simply mapping the folders to the volume, it’s mounting the content inside the volume. Is there any way to tell docker-compose to ..

Read more

I want to get docker daemon information of host from docker container. So I started the docker as follows, but I couldn’t find the docker.sock file. docker run -d –restart=always –privileged –name="MY_CONTAINER" -v /sys/fs/cgroup:/sys/fs/cgroup -v /lib/modules:/lib/modules -v /var/run/docker.sock:/var/run/docker.sock -d myimg:base.01 In Host $ ls -al /var/run/docker.sock srw-rw—-. 1 root docker 0 3월 16 09:05 /var/run/docker.sock ..

Read more

I am working on zookeeper and kafka using docker. My host machine is CENTOS7 and docker installed on it. I having a docker compose file as follows: – — version: ‘3’ services: zookeeper: image: confluentinc/cp-zookeeper:6.1.1 ports: – 2181:2181 environment: ZOOKEEPER_CLIENT_PORT: 2181 ZOOKEEPER_TICK_TIME: 2000 volumes: – /data/zk/zk-data:/var/lib/zookeeper/data – /data/zk/zk-txn-logs:/var/lib/zookeeper/log On my host machine i have a ..

Read more