docker-compose

Docker in Win (Linux containers): docker-compose command fails somehow outside of Visual Studio

白昼怎懂夜的黑 提交于 2020-07-23 06:08:39
问题 I am testing Docker containers, and I managed to create an image, using Visual Studio and Docker Compose, that seems to be OK: Images: The image is a .NET Core Console application, very small and simple. It does connect to a Redis server and starts producing some stuff, and logs this to console. This is how it looks if I start the project directly from Visual Studio (no Docker involved): Now, if I run it via Visual Studio, by setting the "docker-compose" project to Startup, and then pressing

Docker in Win (Linux containers): docker-compose command fails somehow outside of Visual Studio

∥☆過路亽.° 提交于 2020-07-23 06:07:19
问题 I am testing Docker containers, and I managed to create an image, using Visual Studio and Docker Compose, that seems to be OK: Images: The image is a .NET Core Console application, very small and simple. It does connect to a Redis server and starts producing some stuff, and logs this to console. This is how it looks if I start the project directly from Visual Studio (no Docker involved): Now, if I run it via Visual Studio, by setting the "docker-compose" project to Startup, and then pressing

Docker in Win (Linux containers): docker-compose command fails somehow outside of Visual Studio

六眼飞鱼酱① 提交于 2020-07-23 06:06:20
问题 I am testing Docker containers, and I managed to create an image, using Visual Studio and Docker Compose, that seems to be OK: Images: The image is a .NET Core Console application, very small and simple. It does connect to a Redis server and starts producing some stuff, and logs this to console. This is how it looks if I start the project directly from Visual Studio (no Docker involved): Now, if I run it via Visual Studio, by setting the "docker-compose" project to Startup, and then pressing

File Not Found - Nginx in Docker

烂漫一生 提交于 2020-07-22 05:52:28
问题 Description I have a docker container with this nginx.conf server { listen 80; index index.php index.html; root /var/www/public; location / { try_files $uri /index.php?$args; } location ~ \.php$ { fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_pass app:9000; fastcgi_index index.php; include fastcgi_params; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param PATH_INFO $fastcgi_path_info; } } docker-compose.yaml version: '2' services: # The Application app: build:

Connection refused while connection to upstream - Docker

时光毁灭记忆、已成空白 提交于 2020-07-21 06:23:27
问题 Error that I'm getting: nginx_prod_vet | 2019/03/07 20:57:11 [error] 6#6: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 172.23.0.1, server: , request: "GET /backend HTTP/1.1", upstream: "http://172.23.0.2:81/backend", host: "localhost:90" My goal is use nginx as reverse-proxy to delivery the frontend files and proxy the other services to the frontend, so it would be accessible localhost:90/backend been call from localhost:90/. I tried to access from

Docker Laravel Mysql: could not find driver

白昼怎懂夜的黑 提交于 2020-07-20 22:41:02
问题 When I run docker-compose up and do some composer commands, I get error In Connection.php line 664: could not find driver (SQL: select id , name from users In Connector.php line 68: could not find driver ... Why cant Laravel connect to mysql? I can do mysql -h db in docker-compose exec web bash and it works. My setup docker-compose.yml version: '3' services: web: build: ./webserver ports: - "80:80" - "443:443" volumes: - //docker/dockertest/webserver/app:/var/www/vhosts/app links: - db

Docker Laravel Mysql: could not find driver

跟風遠走 提交于 2020-07-20 22:40:57
问题 When I run docker-compose up and do some composer commands, I get error In Connection.php line 664: could not find driver (SQL: select id , name from users In Connector.php line 68: could not find driver ... Why cant Laravel connect to mysql? I can do mysql -h db in docker-compose exec web bash and it works. My setup docker-compose.yml version: '3' services: web: build: ./webserver ports: - "80:80" - "443:443" volumes: - //docker/dockertest/webserver/app:/var/www/vhosts/app links: - db

Docker Laravel Mysql: could not find driver

痴心易碎 提交于 2020-07-20 22:40:25
问题 When I run docker-compose up and do some composer commands, I get error In Connection.php line 664: could not find driver (SQL: select id , name from users In Connector.php line 68: could not find driver ... Why cant Laravel connect to mysql? I can do mysql -h db in docker-compose exec web bash and it works. My setup docker-compose.yml version: '3' services: web: build: ./webserver ports: - "80:80" - "443:443" volumes: - //docker/dockertest/webserver/app:/var/www/vhosts/app links: - db

docker : how to share ssh-keys between containers?

纵然是瞬间 提交于 2020-07-20 14:48:29
问题 I've 4 containers configured like the following ( docker-compose.yml ): version: '3' networks: my-ntwk: ipam: config: - subnet: 172.20.0.0/24 services: f-app: image: f-app tty: true container_name: f-app hostname: f-app.info.my ports: - "22:22" networks: my-ntwk: ipv4_address: 172.20.0.5 extra_hosts: - "f-db.info.my:172.20.0.6" - "p-app.info.my:172.20.0.7" - "p-db.info.my:172.20.0.8" depends_on: - f-db - p-app - p-db f-db: image: f-db tty: true container_name: f-db hostname: f-db.info.my

docker-compose , PermissionError: [Errno 13] Permission denied: '/manage.py'

安稳与你 提交于 2020-07-20 11:12:39
问题 After doing many research I didn't found any solution worked for me. I am trying to run command in docker-composer to start project with django-admin docker-compose run app sh -c "django-admin startproject app ." Every time I am getting the error: Traceback (most recent call last): File "/usr/local/bin/django-admin", line 10, in <module> sys.exit(execute_from_command_line()) File "/usr/local/lib/python3.7/site-packages/django/core/management/__init__.py", line 381, in execute_from_command