containers

Not able to connect to mysql container from php container

我们两清 提交于 2021-02-11 18:15:48
问题 I am having 2 docker containers for php app and mysql. Both are working perfectly individually. I can access my php app at localhost:8000 and can connect mysql at localhost:3306 using MySQL Workbench. But, my php app which is inside the container is not able to connect to the mysql db which is inside another container. My docker-compose.yml file is as follows: version: '3' services: website: container_name: php-app image: php-app build: context: ./ volumes: - php-app:/var/www/html/ ports: -

Templated multistack implementation - how?

烈酒焚心 提交于 2021-02-11 15:48:34
问题 I need a 'MultiStack' taking different types of objects, putting each type in a separate stack. This is what it looks like so far. The open problem is: how to handle the containers for a number of different T class MultiStack { public: template<typename T> const T& Get() { return Container<T>.back(); } template<typename T> void Push( const T& t ) { Container<T>.push_back( t ); } template<typename T> void Pop( const T& /*t*/ ) { Container<T>.pop_back(); } private: // this does not make sense,

Templated multistack implementation - how?

。_饼干妹妹 提交于 2021-02-11 15:47:23
问题 I need a 'MultiStack' taking different types of objects, putting each type in a separate stack. This is what it looks like so far. The open problem is: how to handle the containers for a number of different T class MultiStack { public: template<typename T> const T& Get() { return Container<T>.back(); } template<typename T> void Push( const T& t ) { Container<T>.push_back( t ); } template<typename T> void Pop( const T& /*t*/ ) { Container<T>.pop_back(); } private: // this does not make sense,

Using the same Docker image file permissions differ from machine to machine

旧街凉风 提交于 2021-02-11 15:41:09
问题 I have a problem, that I cannot grasp at all. I'm running my Jenkins pipeline in a Docker container on the master node. Now I added another node and want to run the pipeline there as well. However, using the same image I get different file permissions in the container: ### master > docker image ls node:10.20.1-stretch REPOSITORY TAG IMAGE ID CREATED SIZE node 10.20.1-stretch c5f1efe092a0 13 days ago 912MB > docker run --rm -ti -u 1000:1000 node:10.20.1-stretch ls -la /home/node total 20 drwxr

League route, container, and PDO

╄→гoц情女王★ 提交于 2021-02-11 14:41:55
问题 TL;DR; How do I make a PDO connection available to the CardOnFile\Controller class so that it can make database queries? (I think I have to use the container, but not sure how). Background I want to avoid having multiple connections to the database each time I instantiate an object that needs database access. So, I think I need to instantiate ONE copy of a database connection (PDO) and then inject it into the classes where it will be needed using League\Route and League\Container. I don't

k8s:Two images but single container [duplicate]

被刻印的时光 ゝ 提交于 2021-02-11 14:33:03
问题 This question already has an answer here : Pod with multiple images (1 answer) Closed last month . Below are the exact words of a question that came up in an online test. Create an single container app running in a pod named "bla-bla" with any 3 of the four images listed below. Images: nginx + redis+ memcached. I'm not sure whether this is a wordplay or a typo but what I would like to know is whether there is any syntax for launching multiple images in a single container? I know this can be

Windows Server Core in Docker, Firewall

六眼飞鱼酱① 提交于 2021-02-11 13:31:08
问题 Currently I am working on a project where I have to dockerize an application that is supposed to be running on Windows. It is an application that can be installed and configured via command line. The question is applicable to any application in the end. The platform of my choice is obviously Windows. Therefore I have chosen a base image mcr.microsoft.com/windows/servercore:1803 to begin with. After installation my application will need a rule added to Firewall. So I decided to test whether I

Windows Server Core in Docker, Firewall

元气小坏坏 提交于 2021-02-11 13:30:46
问题 Currently I am working on a project where I have to dockerize an application that is supposed to be running on Windows. It is an application that can be installed and configured via command line. The question is applicable to any application in the end. The platform of my choice is obviously Windows. Therefore I have chosen a base image mcr.microsoft.com/windows/servercore:1803 to begin with. After installation my application will need a rule added to Firewall. So I decided to test whether I

Kill Docker container permission denied

天大地大妈咪最大 提交于 2021-02-11 13:27:46
问题 I'm new to Docker and here what I'm trying to do is delete docker container using docker kill command. I'll show below what I have done so far, Step1: docker run --rm -ti ubuntu sleep 3000 Step2: docker ps Step3: docker kill frosty_bose Error response from daemon: Cannot kill container: quizzical_taussig: Cannot kill container c6379597647089b3e9b251f921ec443d987b0c1b76dfc6d06c704655ecdede8e: unknown error after kill: runc did not terminate sucessfully: container_linux.go:388: signaling init

Why am I getting this “unauthorized” error when trying to mirror OKD installation images from Quay.io?

岁酱吖の 提交于 2021-02-11 12:41:12
问题 I have been working on an installation of OKD on an air-gapped environment. The first major step has been mirroring the OKD images so that they can be moved over to the new environment and pulled locally. I've been following a combination of the OpenShift documentation and this article, as well as this resource for getting my certificates set up. I have been making slow but consistent progress. However, I am now having trouble when attempting to actually mirror the files using oc adm -a $