docker-compose

mysqli not found in (php-fpm) docker container

99封情书 提交于 2021-02-07 14:27:10
问题 I'm running php:7-fpm in a docker container that is used by my nginx web server. Everything is working nicely except for when I'm trying to instantiate a mysqli connection in my PHP code. I receive the following error: "NOTICE: PHP message: PHP Fatal error: Uncaught Error: Class 'Listener\mysqli' not found in index.php:104 Here's my Dockerfile for building the image, where I explicitly install the mysqli extension: FROM php:7-fpm RUN docker-php-ext-install mysqli It appears to be installed

How can I persist go 1.11 modules in a Docker container?

大城市里の小女人 提交于 2021-02-07 13:16:55
问题 I am migrating a Go 1.10 app to Go 1.11. This also includes migrating from dep to mod for managing dependencies. As the application depends on a database, I am using a docker-compose to set up the local development environment. With Go 1.10 I simply mounted the local repository (including the vendor folder) into the correct location in the container's GOPATH : web: image: golang:1.10 working_dir: /go/src/github.com/me/my-project volumes: - .:/go/src/github.com/me/my-project environment: -

How can I persist go 1.11 modules in a Docker container?

扶醉桌前 提交于 2021-02-07 13:12:52
问题 I am migrating a Go 1.10 app to Go 1.11. This also includes migrating from dep to mod for managing dependencies. As the application depends on a database, I am using a docker-compose to set up the local development environment. With Go 1.10 I simply mounted the local repository (including the vendor folder) into the correct location in the container's GOPATH : web: image: golang:1.10 working_dir: /go/src/github.com/me/my-project volumes: - .:/go/src/github.com/me/my-project environment: -

Seeding a MySQL DB for a Dockerized Django App

吃可爱长大的小学妹 提交于 2021-02-07 10:31:17
问题 I am tasked with creating a click-button style use of Docker for developers of a Django app to do local development. I am using docker-compose in combination with private repos on my Docker Hub and it's working well. Except that the app has no default data. The developers have requested to use a full prod dump rather than fixtures with loaddata . Therefore I built a container based on this Dockerfile FROM python:2.7 COPY . /opt/mysite.com WORKDIR /opt/mysite.com ENV WAITFORIT_VERSION="v1.3.1"

standard_init_linux.go:211: exec user process caused “no such file or directory” [duplicate]

南楼画角 提交于 2021-02-07 09:47:33
问题 This question already has answers here : standard_init_linux.go:190: exec user process caused “no such file or directory” - Docker (13 answers) Closed 1 year ago . I am building the docker image of my project using the Dockerfile provided with it but docker container is always remains in restarting state. Below is the container log which I see:- standard_init_linux.go:211: exec user process caused "no such file or directory" Can some one prove me with the possible solution to it and also tell

How to gracefully stop a Dockerized Python ROS2 node when run with docker-compose up?

和自甴很熟 提交于 2021-02-07 09:40:33
问题 I have a Python-based ROS2 node running inside a Docker container and I am trying to handle the graceful shutdown of the node by capturing the SIGTERM / SIGINT signals and/or by catching the KeyboardInterrupt exception. The problem is when I run the node in a container using docker-compose . I cannot seem to catch the "moment" when the container is being stopped/killed. I've explicitly added the STOPSIGNAL in the Dockerfile and the stop_signal in the docker-compose file. Here is a sample of

docker-compose healthcheck does not work in a way it is expected for making container a run first and then container B

我的未来我决定 提交于 2021-02-07 08:06:36
问题 I am using docker compose to run couple of service which depends on each other. Here is part of the docker-compose: backend: build: . command: bash -c "npm run build && npm start" ports: - "3015:3015" depends_on: - couchdb - redis - uds-mock-server volumes: - /app/node_modules - .:/app user: root api-test: restart: always build: . depends_on: - backend healthcheck: test: ["CMD", "curl", "-f", "http://localhost:3015/readiness"] interval: 200s timeout: 200s retries: 5 user: root As you see I

docker-compose healthcheck does not work in a way it is expected for making container a run first and then container B

让人想犯罪 __ 提交于 2021-02-07 08:01:40
问题 I am using docker compose to run couple of service which depends on each other. Here is part of the docker-compose: backend: build: . command: bash -c "npm run build && npm start" ports: - "3015:3015" depends_on: - couchdb - redis - uds-mock-server volumes: - /app/node_modules - .:/app user: root api-test: restart: always build: . depends_on: - backend healthcheck: test: ["CMD", "curl", "-f", "http://localhost:3015/readiness"] interval: 200s timeout: 200s retries: 5 user: root As you see I

The Google Cloud Logging driver for Docker

蹲街弑〆低调 提交于 2021-02-07 07:17:07
问题 I'm not able to authenticate the google cloud driver gcplogs for Docker despite the fact that I've set the env var GOOGLE_APPLICATION_CREDENTIALS to the path/file where the JSON credentials of my service account is. The error message is the following: ERROR: for oncrm_oncrm_1 Cannot start service oncrm: failed to initialize logging driver: google.DefaultTokenSource: google: could not find default credentials. See https://developers.google.com/accounts/docs/application-default-credentials for

The Google Cloud Logging driver for Docker

痞子三分冷 提交于 2021-02-07 07:16:00
问题 I'm not able to authenticate the google cloud driver gcplogs for Docker despite the fact that I've set the env var GOOGLE_APPLICATION_CREDENTIALS to the path/file where the JSON credentials of my service account is. The error message is the following: ERROR: for oncrm_oncrm_1 Cannot start service oncrm: failed to initialize logging driver: google.DefaultTokenSource: google: could not find default credentials. See https://developers.google.com/accounts/docs/application-default-credentials for