docker-compose

docker-compose run and exec: No container found

对着背影说爱祢 提交于 2020-07-15 11:38:08
问题 I was trying to open a second terminal un a docker with docker-compose. First run the container with docker-compose run my-centos bash And when I try to open a second terminal docker-compose exec my-centos bash I get the message ERROR:No container found for my_centos_1 If I search the name of running container I get CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 34a95b44f0a2 centos6 "bash" 9 minutes ago Up 9 minutes docker_my-centos_run_1 why docker-compose exec search docker_my_centos

selenium.common.exceptions.InvalidCookieDomainException: Message: invalid cookie domain while executing tests in Django with Selenium

痞子三分冷 提交于 2020-07-13 15:05:25
问题 I am setting up tests for both chrome and firefox using seleniumgrid.I am using docker images selenium-hub and selenium node-chrome and node-firefox as below. app: build: . command: gunicorn --reload --capture-output --log-level debug --access-logfile - -w 3 -b 0.0.0.0 app.wsgi restart: always volumes_from: - initialize ports: - "8000:8000" links: - db - rabbitmq - selenium_hub env_file: secrets.env volumes: - ./app/:/code/ selenium_hub: image: selenium/hub ports: - 4444:4444 expose: - 4444

selenium.common.exceptions.InvalidCookieDomainException: Message: invalid cookie domain while executing tests in Django with Selenium

时光总嘲笑我的痴心妄想 提交于 2020-07-13 15:03:33
问题 I am setting up tests for both chrome and firefox using seleniumgrid.I am using docker images selenium-hub and selenium node-chrome and node-firefox as below. app: build: . command: gunicorn --reload --capture-output --log-level debug --access-logfile - -w 3 -b 0.0.0.0 app.wsgi restart: always volumes_from: - initialize ports: - "8000:8000" links: - db - rabbitmq - selenium_hub env_file: secrets.env volumes: - ./app/:/code/ selenium_hub: image: selenium/hub ports: - 4444:4444 expose: - 4444

selenium.common.exceptions.InvalidCookieDomainException: Message: invalid cookie domain while executing tests in Django with Selenium

流过昼夜 提交于 2020-07-13 15:03:03
问题 I am setting up tests for both chrome and firefox using seleniumgrid.I am using docker images selenium-hub and selenium node-chrome and node-firefox as below. app: build: . command: gunicorn --reload --capture-output --log-level debug --access-logfile - -w 3 -b 0.0.0.0 app.wsgi restart: always volumes_from: - initialize ports: - "8000:8000" links: - db - rabbitmq - selenium_hub env_file: secrets.env volumes: - ./app/:/code/ selenium_hub: image: selenium/hub ports: - 4444:4444 expose: - 4444

Mysql2::Error: Out of sort memory, consider increasing server sort buffer size using docker-compose.yml

自闭症网瘾萝莉.ら 提交于 2020-07-10 10:24:49
问题 Hi I'm building a rails app and I imported lots of data and inserted into the database. Some tables are okay and some tables have some errors that says out of sort memory. SQL ERROR Mysql2::Error: Out of sort memory, consider increasing server sort buffer size How do you increase server sort buffer size using the docker-compose.yml command? I've tried this one: version: '3' services: db: image: mysql:latest command: - --default-authentication-plugin=mysql_native_password - --innodb-buffer

Pass ENV variable with docker-compose.yml at runtime to Dockerfile

巧了我就是萌 提交于 2020-07-10 08:34:25
问题 I am trying to override the ENV values in my dockerfile depending on the environment (dev/uat/prod) from my docker-compose.yml. Because some of the settings are sensitive I cant have these settings be apart of the build step of the docker image, instead these values must be overridden during runtime. Ive been trying to deploy the following docker-compose via the docker stack deploy -c command, however i noticed my environment variables are not overriding the existing ones in the dockerfile.

Docker MYSQL '[2006] MySQL server has gone away'

六眼飞鱼酱① 提交于 2020-07-10 06:13:21
问题 i have a little problem with mysql server. i created my docker-compose.yml, but when i want to access to phpMyAdmin (localhost:8080), an error message appeared sais that: "phpMyAdmin tried to connect to the MySQL server, and the server rejected the connection. Please check the values ​​of host, username and password in the configuration and make sure they match the information provided by the MySQL server administrator". Here is my docker-compose file and thanks for helping me version: '2'

What is the workflow for updating a rails app in AWS EC2 via Docker with docker-machine?

半腔热情 提交于 2020-07-09 19:36:57
问题 I'm new to Docker, and am trying to understand the workflow for updating my app in AWS, after it's live. For now, the rails app and MySQL database are both on the same EC2 instance. Here's what I'm doing to get the app live: I have a dockerfile a docker-compose.yml file that define the services. The rails application source is linked to the app container with a bind mount in docker-compose.yml: app: ... volumes: - $PWD:/zhxword When I'm ready to deploy, I run: docker-machine create --driver

What is the workflow for updating a rails app in AWS EC2 via Docker with docker-machine?

主宰稳场 提交于 2020-07-09 19:34:42
问题 I'm new to Docker, and am trying to understand the workflow for updating my app in AWS, after it's live. For now, the rails app and MySQL database are both on the same EC2 instance. Here's what I'm doing to get the app live: I have a dockerfile a docker-compose.yml file that define the services. The rails application source is linked to the app container with a bind mount in docker-compose.yml: app: ... volumes: - $PWD:/zhxword When I'm ready to deploy, I run: docker-machine create --driver

How to execute psql interactive in its docker container?

笑着哭i 提交于 2020-07-09 13:41:41
问题 I want to run a query in Postgres interactive shell. I'm using a docker container for this purpose as the following: Here is the relevant piece of docker-compose: db_of_ivms: image: postgres:10 restart: unless-stopped ports: - 5432:5432 container_name: db_of_ivms environment: POSTGRES_PASSWORD: xxx POSTGRES_USER: ivms_usr POSTGRES_DB: ivms_db Nevertheless, I'm dealing with this error: docker exec -it -u 0 db_of_ivms bash # psql psql: FATAL: role "root" does not exist 回答1: You need shell in