docker-compose

Using Docker and Compose in Hyper-V with Windows Server 2016

前提是你 提交于 2019-12-24 08:37:29
问题 I currently have a Hyper-V Virtual machine whose guest OS is Microsoft Server 2016 I was able to install the Docker Service and use the command line to create a docker image I would like to try the same process out in Visual Studio using compose, but it looks like that will only work if the ToolBox is installed. I installed the Toolbox and when I build I get an error around the volume spec, I believe this is because the target OS is Linux. Since Windows Server 2016 is not compatible with

Is there a way to choose the path of named volumes with the default volume drives in docker?

这一生的挚爱 提交于 2019-12-24 08:22:35
问题 Is there a way to choose the path of named volumes with the default volume drives in docker? I know I can bind mount volumes in each service. I know I can create named volumes outside of services and them share them by mounting them in each service. But I can't find out a way to get the data (to be shared) on a path that I select instead of docker's /var/lib/docker/volumes/. Anyone tried to share a volume as a mount point in two different containers of the same docker-compose file where the

Spring Boot REST app returns 400 when requested from other docker-compose service by service name

余生长醉 提交于 2019-12-24 07:46:12
问题 I'm trying to introduce a Spring Boot REST service in our development setup. The development setup is using docker-compose and an API gateway to expose the individual services on the same domain (ie. localhost). When I try to make a HTTP request to my service from inside another container via the service name in the shared docker-compose file, the service returns a 400. The setup I've edited our docker-compose file, so it looks like the below to introduce the Spring Boot Java service. The

Troubleshooting onyx-kafka not writing to a topic. Howto run kafka in docker swarm. Error setting runtime volume size (/dev/shm)?

泪湿孤枕 提交于 2019-12-24 07:33:10
问题 I'm trying to i) troubleshoot a simple onyx-kafka job not writing to a topic. More details are given here. And you can try it out in this sample project. I think the reason is because there's only one kafka node. So I tried ii) launching kafka confluentinc/cp-kafka:3.3.1 (with zookeeper confluentinc/cp-zookeeper:3.3.1 ) running docker (17.09.0-ce, build afdb6d4) in swarm mode . But then I get this error. Warning: space is running low in /dev/shm (shm) threshold=167,772,160 usable=58,716,160 A

Docker/Mongodb data not persistent

岁酱吖の 提交于 2019-12-24 07:28:31
问题 Iam running a rails api server with mongodb all worked perfectly find and I started to move my server into docker. Unfortunately whenever I stop my server (docker-compose down) and restart it all data are lost and the db is completely empty. This is my docker-compose file: version: '2' services: mongodb: image: mongo:3.4 command: mongod ports: - "27017:27017" environment: - MONGOID_ENV=test volumes: - /data/db api: build: . depends_on: - 'mongodb' ports: - "3001:3001" command: bundle exec

Inconsistent issue when using docker-compose in Bluemix

独自空忆成欢 提交于 2019-12-24 07:14:51
问题 I'm having an issue deploying and linking 3 containers using docker-compose in Bluemix / IBM Containers. The compose file I am using has worked and continues to work but it is very inconsistent. When it fails, I get the following response: Recreating xxxxx_1 Recreating yyyyy_1 Creating zzzzz_1 ERROR: for server 'message' Traceback (most recent call last): File "docker-compose", line 3, in <module> File "compose/cli/main.py", line 64, in main File "compose/cli/main.py", line 116, in perform

Docker compose not persisting data

蹲街弑〆低调 提交于 2019-12-24 07:07:24
问题 I have the following docker-compose.yml file: version: '2' services: web: image: myspringapp:1 ports: - "8080:8080" depends_on: - myspringapp_postgres myspringapp_postgres: image: postgres:9.4 ports: - "5432:5432" volumes: - ./pgdata:/var/lib/postgresql/data volumes: pgdata: {} myspringapp is a docker image I build previously. The problem with this is that the data is lost after doing a docker-compose stop . Anyone know what the problem is? 回答1: Looks like you're defining a volume, but

Docker image for Spring/RabbitMQ tutorial results in connection refused

冷暖自知 提交于 2019-12-24 06:49:07
问题 I'm working through the Spring tutorial here; Messaging with RabbitMQ I found this question but it did not address my query regarding the docker-compose.yml file found in the tutorial; Spring RabbitMQ tutorial results in Connection Refused error I've completed all necessary steps up until the actual running of the application, at which point I'm getting ConnectException exceptions suggesting that the server is not running or not running correctly. The docker-compose.yml file specified in the

Database not persisting in docker

北城余情 提交于 2019-12-24 06:47:36
问题 I know I am missing something very basic here. I have see some of the older questions on persisting data using docker, but I think I am following the most recent documentation found here. I have a rails app that I am trying to run in docker. It runs fine but every time I start it up i get ActiveRecord::NoDatabaseError . After I create the database and migrate it, the app runs fine, until I shut it down and restart it. here is my docker file: FROM ruby:2.3.0 RUN apt-get update -qq && apt-get

customize lucee5 docker image to allow running of multiple website within the image

青春壹個敷衍的年華 提交于 2019-12-24 06:41:47
问题 I am running the lucee5 image with docker-compose and that works well. I was able to link my local volume into the dockerimages. the local project contains 4 websites which should all run within the docker image. I would like to be able to connect to them like localhost:1337/customer and localhost:1337/player and localhost:1337/etc.. So for this I have to setup Apache on the docker image which I know how to do. However, when I quit stop docker-compose and try to persist the last container