docker-compose

docker compose: Error while loading shared libraries: libz.so.1: failed to map segment from shared object: Operation not permitted

牧云@^-^@ 提交于 2019-12-23 18:04:26
问题 After installing docker and docker-compose on: NAME="Red Hat Enterprise Linux Server" VERSION="7.6 (Maipo)" When executing: sudo docker-compose -version It returns: Error while loading shared libraries: libz.so.1: failed to map segment from shared object: Operation not permitted It should return: docker-compose version 1.25.0-rc2, build 661ac20e Installation from docker-compose is this 回答1: Got it solved by re-mounting the /tmp to give the volume permission to execute (it was accessible with

Docker-compose v3 not persisting postgres database

纵饮孤独 提交于 2019-12-23 16:32:52
问题 I'm having difficulty persisting postgres data after a docker-compose v3 container is brought down and restarted. This seems to be a common problem, but after a lot of searching I have not been able to find a solution that works. My question is similar to here: How to persist data in a dockerized postgres database using volumes, but the solution does not work - so please don't close. I'm going to walk through all the steps below to replicate the problem. Here is my docker-compose file:

Is Docker a replacement for git source control? [closed]

大兔子大兔子 提交于 2019-12-23 15:50:33
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 4 years ago . Is Docker in anyway intended to replace git , SVN or other similar source control platforms? If not how do the two integrate? 回答1: No, Docker is not intended to replace any of the SCM systems. When you build a versioned image, it means that you've just built an atomic version of the application

debian 安装配置lsyncd

Deadly 提交于 2019-12-23 15:39:05
安装lsyncd root@mysql-2:~# apt-get install -y lsyncd 整理需要同步的服务器 整理配置文件 root@mysql-2:/data/lsyncd# cat /etc/lsyncd.conf settings { logfile ="/data/mysql/project_nginx.log", statusFile ="/data/lsyncd/lsyncd.status", inotifyMode = "CloseWrite", maxProcesses = 8, -- maxConnections = 4, -- delay = 10, -- excludeFrom = file, -- excludeFrom 排除选项 } sync { default.rsyncssh, source = "/data/docker-compose", host = "192.168.1.23", targetdir = "/data/docker-compose", -- exclude = "/data/www/public_html/config.inc.php", #排除此文件不同步 -- maxDelays = 5,累计到多少所监控的事件激活一次同步,即使后面的delay延迟时间还未到 -- delay = 2, -- init =

Failing to build docker container on remote host

匆匆过客 提交于 2019-12-23 15:38:39
问题 I have a set of docker containers that are generated from yml files and work ok. I now want to deploy them to another machine. In another post here I was advised to build the container on the remote host using one of 2 options: option1 - copy the code to the remote host and apply a modified docker-compose, and build from source using a modified docker-compose option2 - create an image on local machine, push it to a docker repository, pull it from there, using a modified docker-compose I'm

Docker compose doesn't recognize 'env_file'

馋奶兔 提交于 2019-12-23 15:25:20
问题 I am trying to run docker-compose up with the following configuration: php: image: php:7.0-fpm expose: - 9000 links: - nginx nginx: env_file: .env image: nginx:latest ports: - 80:80 - 433:433 environment: - NGINX_HOST: ${APP_URL} mysql: env_file: .env image: mysql:latest ports: - 3306:3306 environment: - MYSQL_ROOT_PASSWORD: ${DB_PASSWORD} - MYSQL_DATABASE: ${DB_DATABASE} - MYSQL_USER: ${DB_USERNAME} - MYSQL_PASSWORD: ${DB_PASSWORD} - MYSQL_ALLOW_EMPTY_PASSWORD: no I have an .env file in the

Docker compose installing requirements.txt

て烟熏妆下的殇ゞ 提交于 2019-12-23 15:22:55
问题 In my docker image I am cloning the git master branch to retrieve code. I am using docker-compose for the development environment and running my containers with volumes. I ran across an issue when installing new project requirements from my python requirements.txt file. In the development environment, it will never install new requirements on dev environment because when re-building the image, the latest code is pulled from github. Below is an example of my dockerfile: FROM base # Clone

Issue mounting docker volume with docker-compose

我是研究僧i 提交于 2019-12-23 12:55:39
问题 My Scenario I am trying to build docker swarm with docker-compose.yml file version: '3' services: myapp-nginx: image: nginx:1.10 volumes: - ./nginx/certs:/etc/nginx/certs ports: - 80:80 - 443:443 using build command as below $ docker stack deploy --compose-file docker-compose.yml myapp Creating network myapp_default Creating service myapp_myapp-nginx My system have Docker Version 17.03.1-ce-mac5 (16048) Problem Volumes mounts are not working, If I comment out volumes: - ./nginx/certs:/etc

couldn't start Celery with docker-compose

我与影子孤独终老i 提交于 2019-12-23 12:23:46
问题 I have Flask app with Celery worker and Redis and it's working normally as expected when running on local machine. Then I tried to Dockerize the application. When I trying to build/start the services ( ie, flask app, Celery, and Redis) using sudo docker-compose up all services are running except Celery and showing an error as ImportError: No module named 'my_celery' But, the same code working in local machine without any errors. Can any one suggest the solution? Dockerfile FROM python:3.5

Python docker-compose interpreter in Pycharm: Couldn't find docker binary

我是研究僧i 提交于 2019-12-23 11:53:07
问题 I am trying to configure the remote python docker-compose interpreter in PyCharm Professional. I am able to run a small project (https://blog.jetbrains.com/pycharm/2017/03/docker-compose-getting-flask-up-and-running/#comment-370730) from the docker container. But when I try to configure it for debugging, setting up of remote interpreter gives me an error saying that docker binary couldn't be found and tells me to install docker. docker binary error Has anyone encountered this issue before?