Docker

Windows docker: permission denied /var/run/docker.sock

你离开我真会死。 提交于 2021-02-18 11:30:10
问题 When I try to run filebeat with autodiscover I get the following error: Exiting: error in autodiscover provider settings: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.22/containers/json?limit=0: dial unix /var/run/docker.sock: connect: permission denied I exposed the daemon on tcp://localhost:2375 from docker settings. I checked that my user is member of "docker-users" group. docker-compose

How to cache local Maven repository using Docker with Pipelines?

混江龙づ霸主 提交于 2021-02-18 11:24:31
问题 I want to run my Maven builds in a Docker container. I don't want to upload all depenedencies with every build, so I tried to mount host's local Maven repository as documented at Using Docker with Pipeline: Caching data for containers [...] Pipeline supports adding custom arguments which are passed to Docker, allowing users to specify custom Docker Volumes to mount, which can be used for caching data on the agent between Pipeline runs. The following example will cache ~/.m2 between Pipeline

Docker Compose vs Multi-Stage Build

泄露秘密 提交于 2021-02-18 11:05:33
问题 With this new version of Docker, Multi-Stage build gets introduced, at least I'd never heard of it before. And the question I have now is, should I use it like a standard Compose file? I used docker-compose.yaml to start containers where many images where involved, one for the web server and one for the data base. With this new multi-stage build, can I use one single Dockerfile with two FROM commands and that's it? Will this Multi-stage build eventually kill Compose (since images are smaller)

Docker Compose vs Multi-Stage Build

随声附和 提交于 2021-02-18 11:04:28
问题 With this new version of Docker, Multi-Stage build gets introduced, at least I'd never heard of it before. And the question I have now is, should I use it like a standard Compose file? I used docker-compose.yaml to start containers where many images where involved, one for the web server and one for the data base. With this new multi-stage build, can I use one single Dockerfile with two FROM commands and that's it? Will this Multi-stage build eventually kill Compose (since images are smaller)

Docker Compose and Postgres : Name does not resolve

坚强是说给别人听的谎言 提交于 2021-02-18 10:36:25
问题 In Docker, I am trying to configure Postgres, get it up and running in another container, and link it to my users service, set up with the following structure: docker-compose-dev.yml services/ users/ manage.py Dockerfile-dev entrypoint.sh project/ __init__.py config.py db/ create.sql Dockerfile docker-compose-dev.yml version: '3.7' services: users: build: context: ./services/users dockerfile: Dockerfile-dev volumes: - './services/users:/usr/src/app' ports: - 5001:5000 environment: - FLASK_APP

Elastic Beanstalk: log task customization on Amazon Linux 2 platforms

血红的双手。 提交于 2021-02-18 10:18:11
问题 I'm wondering how to do log task customization in the new Elastic Beanstalk platform (the one based on Amazon Linux 2). Specifically, I'm comparing: Old : Single-container Docker running on 64bit Amazon Linux/2.14.3 New : Single-container Docker running on 64bit Amazon Linux 2/3.0.0 (My question actually has nothing to do with Docker as such, I'm speculating the problem exist for any of the new Elastic Beanstalk platforms). Previously I could follow Amazon's recipe, meaning put a file into

Share volumes between separate docker compose files

好久不见. 提交于 2021-02-18 10:09:45
问题 I am trying to allow nginx to proxy between multiple containers while also accessing the static files from those containers. To share volumes between containers created using docker compose, the following works correctly: version: '3.6' services: web: build: context: . dockerfile: ./Dockerfile image: webtest command: ./start.sh volumes: - .:/code - static-files:/static/teststaticfiles nginx: image: nginx:1.15.8-alpine ports: - "80:80" volumes: - ./nginx-config:/etc/nginx/conf.d - static-files

Share volumes between separate docker compose files

不羁的心 提交于 2021-02-18 10:09:21
问题 I am trying to allow nginx to proxy between multiple containers while also accessing the static files from those containers. To share volumes between containers created using docker compose, the following works correctly: version: '3.6' services: web: build: context: . dockerfile: ./Dockerfile image: webtest command: ./start.sh volumes: - .:/code - static-files:/static/teststaticfiles nginx: image: nginx:1.15.8-alpine ports: - "80:80" volumes: - ./nginx-config:/etc/nginx/conf.d - static-files

Apache couldn't determine servername on docker container

大兔子大兔子 提交于 2021-02-18 08:37:06
问题 I am trying to set up a customized docker container for an existing site. To do so I want to provide my own custom vhost configuration with a ServerName . But when I try to add a custom vhost configuration and restart apache I get the warning that Apache was unable to determine the global name: Could not reliably determine the server's fully qualified domain name, using 172.26.0.2. Set the 'ServerName' directive globally to suppress this message What's important is the fact that when I log

Apache couldn't determine servername on docker container

*爱你&永不变心* 提交于 2021-02-18 08:36:19
问题 I am trying to set up a customized docker container for an existing site. To do so I want to provide my own custom vhost configuration with a ServerName . But when I try to add a custom vhost configuration and restart apache I get the warning that Apache was unable to determine the global name: Could not reliably determine the server's fully qualified domain name, using 172.26.0.2. Set the 'ServerName' directive globally to suppress this message What's important is the fact that when I log