docker-compose

Where to include core.yaml in Hyperledger Fabric?

a 夏天 提交于 2019-12-11 04:49:23
问题 I am working on Hyperledger fabric and trying to retrieve historical transaction records from the network. So, i found core.yaml config to enable ledger historic database. But, i don't find where to include the " core.yaml " in the application source repository. I found few clues to add the file in docker-compose.yaml as CORE_VM_ENDPOINT=core.yaml So, is it the correct way of adding the " core.yaml " in the docker-compose.yaml file.? docker-compose.yaml version: '2' services: ca.org1.example

Changing my project files doesn't change files inside the Docker machine

让人想犯罪 __ 提交于 2019-12-11 04:48:30
问题 I'm trying to use Docker to improve my workflow. I installed "Docker Toolbox for Windows" on my Windows 10 home edition (since Docker supposedly only work on professional). I'm using mgexhev's angular-seed which claim to provide full docker support. There is a docker-compose.yml file which links a ./.docker/angular-seed.development.dockerfile. After git cloning the seed project I can start it by running the commands given on the seed project's github page. So I can see the app after running:

Oci runtime error docker-compose not a directory

醉酒当歌 提交于 2019-12-11 04:45:13
问题 I am new to docker and currently struggling with the following problem: After starting the command in the docker terminal: OAUTH_CLIENT_ID=<...> OAUTH_CLIENT_SECRET=<...> OAUTH_URL_CALLBACK=http://192.168.99.100/api/v1/auth/login docker-compose -- file test/docker-compose.yml up I get the following error message: ERROR: for platform Cannot start service platform: invalid header field value "oci runtime error: container_linux.go:247: starting container process caused \"process_linux.go:359:

Unable to run Registrator using docker-compose. Get connection refused error

别说谁变了你拦得住时间么 提交于 2019-12-11 04:43:50
问题 I have Consul and a bunch of services on my local machine. Now I want to implement service registration in Consul using Registrator. If I do it like so: $ docker run -d --name registrator --net=host \ --volume /var/run/docker.sock:/tmp/docker.sock gliderlabs/registrator \ consul://127.0.0.1:8500 And after that run some services, I see that they are registered in Consul. If however I try to do it via docker-compose.yml (since I do not want to run the above command each time by hand): version:

Why did mysql data ownership change to systemd-journal-remote after running a docker container

不羁岁月 提交于 2019-12-11 04:43:48
问题 I have the mysql database stored in /home/mysql instead of /var/lib/mysql . The directory used to be owned by mysql . However, when I run the command docker-compose up with this yml file: version: '3' services: mariadb: image: mariadb restart: always volumes: - /home/mysql:/var/lib/mysql elasticsearch: image: docker.elastic.co/elasticsearch/elasticsearch:5.6.4 environment: - "ES_JAVA_OPTS=-Xms750m -Xmx750m" - bootstrap.memory_lock=false site: build: . volumes: - "./app:/app" links: - mariadb

Applications not registering to eureka when using docker-compose

◇◆丶佛笑我妖孽 提交于 2019-12-11 04:43:34
问题 I took this example https://github.com/paulc4/microservices-demo and I created 3 docker images from it, with the following Dockerfiles: springdocker-registration: FROM openjdk:8-jdk-alpine VOLUME /tmp ADD target/microservice-demo-1.1.0.RELEASE.jar app.jar EXPOSE 1111 ENTRYPOINT exec java -jar /app.jar registration springdocker-accounts: FROM openjdk:8-jdk-alpine VOLUME /tmp ADD target/microservice-demo-1.1.0.RELEASE.jar app.jar EXPOSE 2222 ENTRYPOINT exec java -jar /app.jar accounts

Cannot link Consul and Spring Boot app in Docker

痴心易碎 提交于 2019-12-11 04:41:55
问题 I have a Spring Boot app with the following config: spring: thymeleaf: cache: false cloud: consul: host: consul port: 8500 discovery: prefer-ip-address: true instanceId: ${spring.application.name}:${spring.application.instance_id:${random.value}} that I want to run with docker-compose(Docker 1.11.2, docker-compose 1.7.1): consul: image: progrium/consul:latest container_name: consul hostname: consulhost ports: - "8400:8400" - "8500:8500" - "8600:53" command: "-server -bootstrap-expect 1 -ui

Does Jenkins support docker-compose

…衆ロ難τιáo~ 提交于 2019-12-11 04:36:01
问题 I read in certain docker plugins, such as docker-slave-plugin, it shows there is support for compose but I do not understand how to implement it. Has anyone used docker-compose in the Jenkins pipeline and how? 回答1: The short answer appears to be no. It does not directly support compose. I got around this by using the script{} blocks in the Jenkinsfile to manually call docker-compose up which worked fine. 回答2: I installed docker and docker-compose on the Jenkins machine and run it with sh

Docker Compose Getting Started guide

岁酱吖の 提交于 2019-12-11 04:30:58
问题 I'm following the Docker Compose getting started guide (https://docs.docker.com/compose/gettingstarted/) and I've followed the guide exactly. My Dockerfile , docker-compose.yml , and all other files in the directory are exactly as they appear in the guide. However, when I attempt to run docker-compose up , the web service exits immediately with an exit code of 2, and an error message: web_1 | python: can't open file 'app.py': [Errno 2] No such file or directory Building and running an image

Development workflow for server and client using Docker Compose?

女生的网名这么多〃 提交于 2019-12-11 04:17:08
问题 I'm developing a server and its client simultaneously and I'm designing them in Docker containers. I'm using Docker Compose to link them up and it works just fine for production but I can't figure out how to make it work with a development workflow in which I've got a shell running for each one. My docker-compose-devel.yml : server: image: node:0.10 client: image: node:0.10 links: - server I can do docker-compose up client or even docker-compose run client but what I want is a shell running