docker-compose

How can I interactively run a dotnet core console application inside of a docker container

只谈情不闲聊 提交于 2020-08-10 19:15:52
问题 I created the following simple dotnet core console application from Visual Studio 2019. Console.WriteLine("Hello World!"); var readText = Console.ReadLine(); Console.WriteLine(readText); When I press F5, the program waits for me at Console.ReadLine till I enter some text. When I type some text and press enter, the same text is displayed to me back. Now I add docker support to this console project. I have written the step by step instructions in another so question to add the docker support.

Can't connect to dockerized mysql

♀尐吖头ヾ 提交于 2020-08-10 18:58:48
问题 I'm dockerizing an adonisjs + mysql application. I created a docker-compose and Dockerfile and everything was working just fine, but I wanted to move all those files instead a dedicated directory. Now docker containers are being built and everything starts but I just cannot connect to my MySQL docker. When I try to connect it always says "Access denied for user 'homestead'@'172.30.0.1' (using password: YES)". The fun fact is that it always puts that 172.30.0.1 it wasn't like this before and

Can't connect to dockerized mysql

送分小仙女□ 提交于 2020-08-10 18:58:02
问题 I'm dockerizing an adonisjs + mysql application. I created a docker-compose and Dockerfile and everything was working just fine, but I wanted to move all those files instead a dedicated directory. Now docker containers are being built and everything starts but I just cannot connect to my MySQL docker. When I try to connect it always says "Access denied for user 'homestead'@'172.30.0.1' (using password: YES)". The fun fact is that it always puts that 172.30.0.1 it wasn't like this before and

How to configure docker to avoid and specific address or subnet?

≯℡__Kan透↙ 提交于 2020-08-09 08:18:48
问题 In our development environment, we manage 20+ containers with docker-compose files, but from time to time one of them acquires one IP from our network and we lost connectivity. When that happens, we manually shut down the container and the network. Is there a way to configure docker to avoid that specific IP address or subnet when we add more containers? Our docker version is: Client: Docker Engine - Community Version: 19.03.12 API version: 1.40 Go version: go1.13.10 Git commit: 48a66213fe

Issue with Dockerising Django app using docker-compose

☆樱花仙子☆ 提交于 2020-08-08 05:40:42
问题 I am new to Docker and I want to dockerise the Django app to run as a container. Followed as below. Here is the Dockerfile FROM python:3 ENV PYTHONUNBUFFERED 1 RUN mkdir /code WORKDIR /code COPY requirements.txt /code/ RUN pip install -r requirements.txt COPY . /code/ Here is docker-compose.yml conf version: '3' networks: mynetwork: driver: bridge services: db: image: postgres ports: - "5432:5432" networks: - mynetwork environment: POSTGRES_USER: xxxxx POSTGRES_PASSWORD: xxxxx web: build: .

TesseractNotFoundError: two docker container python app (docker-compose)

大城市里の小女人 提交于 2020-08-07 08:19:47
问题 I have my python project with tesseract running locally, and it works in Pycharm. I used docker-compose.yml, having two containers (app and t4re) as follows: version: '3' services: app: build: . image: ocr_app:latest depends_on: - tesseract tesseract: image: tesseractshadow/tesseract4re container_name: t4re and my Dockerfile is as follows: FROM python:3.6.1 # Create app directory WORKDIR /app # Bundle app source COPY venv/src ./src COPY venv/data ./data # Install app dependencies RUN pip

TesseractNotFoundError: two docker container python app (docker-compose)

别说谁变了你拦得住时间么 提交于 2020-08-07 08:19:33
问题 I have my python project with tesseract running locally, and it works in Pycharm. I used docker-compose.yml, having two containers (app and t4re) as follows: version: '3' services: app: build: . image: ocr_app:latest depends_on: - tesseract tesseract: image: tesseractshadow/tesseract4re container_name: t4re and my Dockerfile is as follows: FROM python:3.6.1 # Create app directory WORKDIR /app # Bundle app source COPY venv/src ./src COPY venv/data ./data # Install app dependencies RUN pip

docker run [9] System error: exec format error

喜你入骨 提交于 2020-08-06 08:08:38
问题 I created Dockerfile to build my image called aii. FROM docker.io/centos:latest #Set parameters ENV BinDir /usr/local/bin ENV RunFile start-aii.sh ADD ${RunFile} ${BinDir} #Some other stuff ... CMD ${RunFile} When I run the image with the following command: docker run -it -v <some-volume-mapping> aii it's works great (default operation of running CMD command of start-aii.sh). Now, if I try to override this default behavior and to run the image with the same script implicitly (and add another

docker run [9] System error: exec format error

大城市里の小女人 提交于 2020-08-06 08:08:12
问题 I created Dockerfile to build my image called aii. FROM docker.io/centos:latest #Set parameters ENV BinDir /usr/local/bin ENV RunFile start-aii.sh ADD ${RunFile} ${BinDir} #Some other stuff ... CMD ${RunFile} When I run the image with the following command: docker run -it -v <some-volume-mapping> aii it's works great (default operation of running CMD command of start-aii.sh). Now, if I try to override this default behavior and to run the image with the same script implicitly (and add another

docker run [9] System error: exec format error

梦想的初衷 提交于 2020-08-06 08:08:08
问题 I created Dockerfile to build my image called aii. FROM docker.io/centos:latest #Set parameters ENV BinDir /usr/local/bin ENV RunFile start-aii.sh ADD ${RunFile} ${BinDir} #Some other stuff ... CMD ${RunFile} When I run the image with the following command: docker run -it -v <some-volume-mapping> aii it's works great (default operation of running CMD command of start-aii.sh). Now, if I try to override this default behavior and to run the image with the same script implicitly (and add another