docker-compose

Cannot find module for a node js app running in a docker compose environment

时间秒杀一切 提交于 2020-01-02 01:07:13
问题 I am sorry for my very newbie question, but I am having a terrible day figuring out this error, I have an Express app and I am trying to run it in docker compose. I've used this Dockerfile: FROM mhart/alpine-node RUN mkdir -p /usr/src/app RUN chmod -R 777 /usr/src/app WORKDIR /usr/src/app RUN npm install node-gyp -g RUN npm install nodemon -g ENV NODE_ENV development EXPOSE 3000 And this portion of my docker-compose file: backend: mem_limit: 100m build: context: . dockerfile: dockerfiles/node

Running docker-container tests on circleCI

拜拜、爱过 提交于 2020-01-01 19:31:24
问题 I have created some integration tests for my open-sourced code and I am looking for a publicly accessible CI service to host them. As Travis-CI has to small quotas for all my containers, I think I will use CircleCI. This is my cirle.yml : machine: services: - docker dependencies: override: - pip install docker-compose test: override: - cd integration-tests && docker-compose run --rm runner However after running this I get error message "client and server don't have same version (client : 1.18

How to connect to an existing docker network with docker remote API (through dockerode)

时间秒杀一切 提交于 2020-01-01 17:01:24
问题 I use docker-compose to create a "park" of container inter-linked. Nothing special here, I have API/Frontend/Backend etc.. There is my docker-compose.yml : version: "2" services: api: build: ./deimos_api/docker ports: - "39999:80" volumes: - ./deimos_api:/root/deimos_api asset: build: ./deimos_asset/docker ports: - "8000:80" volumes: - ./deimos_asset:/root/deimos_asset depends_on: - api links: - api data-manager: build: ./deimos_data_manager/docker ports: - "3333:3333" volumes: - ./deimos

VSTS push docker-compose to Azure Container Registry and WebApp

拟墨画扇 提交于 2020-01-01 14:24:26
问题 I would like to configure continuous integration from VSTS to Azure Container Registry and then to WebApp. Here's my docker-compose.yml file: As you can see I'm using an Asp.Net core + mssql. version: '3' services: api: image: tbacr.azurecr.io/myservice/api container_name: api build: context: ./Api dockerfile: Dockerfile ports: - "8000:80" depends_on: - db db: image: "microsoft/mssql-server-linux" container_name: mssql environment: SA_PASSWORD: "testtest3030!" ACCEPT_EULA: "Y" MSSQL_PID:

Docker socket crash after stack up

笑着哭i 提交于 2020-01-01 12:37:10
问题 I trying to deploy docker stack, that includes my development environment. But in random cases I have next error: > failed to create service < service_name >: Cannot connect to the > Docker daemon at unix:///var/run/docker.sock. Is the docker daemon > running? Next I restart docker daemon. Sometimes it requires to kill docker processes and shims. I deleting old stack and build again. Some times docker successfully finishes build, but socket crashes on the starting stage. Also all containers

Unable to access Docker application from browser

£可爱£侵袭症+ 提交于 2020-01-01 12:08:37
问题 I have a .NET Core 2.1 API which, when run via Visual Studio in Windows, receives a HTTP GET from the browser and successfully returns data from a MySQL DB. I've been trying to add the API to a Docker container (inside Ubuntu) - this builds, but I can't access the API from the browser: What I've tried : Checking available ports. Here's the relevant output: Connecting using a different browser: In Chromium, it says 'This site can't be reached: localhost unexpectedly closed the connection.'

Wrong permissions in volume in Docker container

送分小仙女□ 提交于 2020-01-01 11:45:54
问题 I run Docker 1.8.1 in OSX 10.11 via an local docker-machine VM. I have the following docker-compose.yml: web: build: docker/web ports: - 80:80 - 8080:8080 volumes: - $PWD/cms:/srv/cms My Dockerfile looks like this: FROM alpine # install nginx and php RUN apk add --update \ nginx \ php \ php-fpm \ php-pdo \ php-json \ php-openssl \ php-mysql \ php-pdo_mysql \ php-mcrypt \ php-ctype \ php-zlib \ supervisor \ wget \ curl \ && rm -rf /var/cache/apk/* RUN mkdir -p /etc/nginx && \ mkdir -p /etc

How to see which docker volume is or was being used by which container

房东的猫 提交于 2020-01-01 08:49:27
问题 I can list all containers with docker ps (-a) , I can list all volumes with docker volumes ls , when I inspect a volume , I can see the name , driver and mountpoint , but not the container(s) it is being used by. When I use docker inspect <container> , I can see the Mount data like this for example: "Mounts": [ { "Name": "centos_db_symfony", "Source": "/var/lib/docker/volumes/centos_db_symfony/_data", "Destination": "/var/lib/mysql", "Driver": "local", "Mode": "rw", "RW": true, "Propagation":

Docker-compose Nginx php-fpm file not found

痞子三分冷 提交于 2020-01-01 08:35:33
问题 I have a simple docker-compose config with php-fpm and nginx, and I can't see any php file. When I go to localhost, it shows File Not Found. I tried everything I could find on the net, but everything I have tried has failed. It works fine for html, but not for php files. Seems to be a path issue, or something like that. I come across this error when I docker-compose logs : project3-php_1 | 172.17.0.5 - 29/Mar/2016:13:29:12 +0000 "GET /index.php" 404 project3-front_1 | 172.17.0.1 - - [29/Mar

Rails app in docker container doesn't reload in development

◇◆丶佛笑我妖孽 提交于 2020-01-01 08:04:57
问题 I followed this docker-compose tutorial on howto start a rails app. It runs perfectly but the app isn't reloaded when I change a controller. What can it be missing? 回答1: I was struggling with this as well, there are 2 things that you need to do: 1) Map the current directory to the place where Docker is currently hosting the files. 2) Change the config.file_watcher to ActiveSupport::FileUpdateChecker Step 1: In your Dockerfile, check where are you copying/adding the files. See my Dockerfile: #