Archive of posts with tag 'docker' and lang 'en'

Running MySQL Server in Docker Container and Connecting to it from Host Machine
To run MySQL server in a Docker container and connect to it from your host machine, follow these steps:

Explore your container with docker run
I. Introduction
Should a docker container run as root or user
I. Introduction

Comment configurer votre environnement de développement local Node.js à l'aide de Docker
Docker est l’ensemble d’outils de facto pour créer des applications modernes et configurer un pipeline CI/CD - vous aidant à créer, expédier et exécuter vos applications dans des conteneurs sur site et dans le cloud.
![[RÉSOLU] L'image du docker Laravel Impossible d'ouvrir le fichier d'entrée : /var/www/html/artisan](https://res.cloudinary.com/brightsoftwares/image/upload/t_BSBlogImage/v1653589966/pexels-greta-hoffman-7859013_qwwcme.jpg)
[RÉSOLU] L'image du docker Laravel Impossible d'ouvrir le fichier d'entrée : /var/www/html/artisan
Lorsque j’exécute mon application laravel, j’obtiens l’erreur Laravel docker image Could not open input file: /var/www/html/artisan. J’ai enfin trouvé la cause première du problème, permettez-moi de la partager avec vous.

Astuce Docker : inspect et jq
Docker inspecte et moins

Comment connecter mysql workbench à mysql dans Docker ?
L’exécution de votre base de données dans un conteneur est une solution très portable. Il est également reproductible. Mais comment gérez-vous les données à l’intérieur de ce conteneur ?

Astuce Docker : inspecter et moins
Docker inspecte et moins

Comment configurer votre environnement de développement local Node.js à l'aide de Docker
Docker est l’ensemble d’outils de facto pour créer des applications modernes et configurer un pipeline CI/CD - vous aidant à créer, expédier et exécuter vos applications dans des conteneurs sur site et dans le cloud.
![[RESOLU] Docker Laravel /usr/sbin/apache2ctl,: not found exited with code 127](https://res.cloudinary.com/brightsoftwares/image/upload/t_BSBlogImage/v1653595902/daniel-jensen-UDleHDOhBZ8-unsplash_prytio.jpg)
[RESOLU] Docker Laravel /usr/sbin/apache2ctl,: not found exited with code 127
J’ai récemment terminé un projet Laravel et j’ai fait un pas de plus pour l’empaqueter dans Docker. Dans le processus, j’ai rencontré un comportement étrange. L’outil docker-compose a lancé cette erreur /usr/sbin/apache2ctl,: not found sorti avec le code 127 sur moi. J’ai finalement réussi à le résoudre. Voici comment.
![[RÉSOLU] L'image du docker Laravel Impossible d'ouvrir le fichier dentrée : /var/www/html/artisan](https://res.cloudinary.com/brightsoftwares/image/upload/t_BSBlogImage/v1653589966/pexels-greta-hoffman-7859013_qwwcme.jpg)
[RÉSOLU] L'image du docker Laravel Impossible d'ouvrir le fichier dentrée : /var/www/html/artisan
Lorsque j’exécute mon application laravel, j’obtiens l’erreur Laravel docker image Could not open input file: /var/www/html/artisan. J’ai enfin trouvé la cause première du problème, permettez-moi de la partager avec vous.

Comment réparer TCP ne peut pas se connecter depuis l'extérieur de la machine virtuelle, le trafic réseau n'est pas transféré au port de service
La plupart du temps, lorsque vous configurez votre cluster Kubernetes, l’utilisation des paramètres du contrôleur d’entrée par défaut fonctionne. Mais lorsque vous devez faire quelque chose de personnalisé, vous pouvez rencontrer des problèmes. Votre docker sous-jacent et votre moteur kubernetes peuvent vous donner des têtes. Nous allons voir dans cette soluce, comment les réparer et vous redonner le sourire.

7 étapes faciles pour déployer une application laravel dans un conteneur docker
Laravel est un framework PHP très utile pour construire des projets impressionnants. Il dispose d’outils intéressants qui permettent à un développeur de sortir rapidement un prototype de son application. Je suis fan de l’organisation de mon application dans des conteneurs pour faciliter le déploiement et la gestion des dépendances. Je suis tombé sur un projet intéressant que je voulais déployer et tester. Je pensais partager avec vous les étapes pour effectuer un tel déploiement.

Comment accéder au port hôte dans un conteneur Docker ?
La plupart du temps, lorsque vous configurez votre cluster Kubernetes, l’utilisation des paramètres du contrôleur d’entrée par défaut fonctionne. Mais lorsque vous devez faire quelque chose de personnalisé, vous pouvez rencontrer des problèmes.

Comment exposer un port sur Minikube
Lorsque vous utilisez minikube, vous devez exposer des ports pour accéder à vos services. Dans docker, vous avez un indicateur de commande pour le faire. Comment faites-vous la même chose dans minikube ?

Comment connecter mysql workbench à mysql dans Docker ?
L’exécution de votre base de données dans un conteneur est une solution très portable. Il est également reproductible. Mais comment gérez-vous les données à l’intérieur de ce conteneur ?

3 façons de connecter votre conteneur Dolibarr à la base de données locale
L’une des priorités d’un administrateur système est l’optimisation des performances des déploiements et de l’infrastructure sous-jacente. J’ai un mariadb déployé et en cours d’exécution sur un serveur Linux. Il est optimisé pour les performances et le stockage de la base de données. Maintenant, je prévois de déployer un conteneur dolibarr docker dessus.

Comment réparer TCP ne peut pas se connecter depuis l'extérieur de la machine virtuelle, le trafic réseau n'est pas transféré au port de service
La plupart du temps, lorsque vous configurez votre cluster Kubernetes, l’utilisation des paramètres du contrôleur d’entrée par défaut fonctionne. Mais lorsque vous devez faire quelque chose de personnalisé, vous pouvez rencontrer des problèmes. Votre docker sous-jacent et votre moteur kubernetes peuvent vous donner des têtes. Nous allons voir dans cette soluce, comment les réparer et vous redonner le sourire.

How do you ping a Docker container from the outside?
At some point when you are using docker you are going to find yourself needing to worry about container networks. Sometimes what has happened to me at least in the past is I will go ahead and create some containers based on images but for whatever reasons sometimes these containers are not on the same docker network.

A complete tutorial about jenkins file
In this post I am going to show you what jenkins file is how to create it and what the syntax looks like.

What is difference between docker attach and exec?
In this post we are going to see the docker exec and how we use it. Then we are going to see is docker attach and how we use it. So what is docker attach and how is it different from docker exec.

How do I run a docker container with a specific user
BY default when you run

Propriétés multilignes dans kubernetes Helm avec ConfigMaps
Il existe plusieurs API dans Kubernetes. Un ConfigMap est l’un d’entre eux. C’est un objet qui permet de stocker certaines données non confidentielles. Les données se présentent sous la forme de paires clé-valeur. Certains utilisent des variables d’environnement. Dans cet article de blog, nous verrons comment vous pouvez afficher des lignes à valeurs multiples.

How to copy files from host to Docker container?
In my daily work, I have utility containers. Some are based on ubuntu, others just on busy box. I start them, run few commands and destroy them.

How to run jenkins jobs with docker
I have successfully deployed my jenkins instance and did a good setup in my [[2022-08-31-a-complete-tutorial-about-jenkins-file|jenkins file]]. Now I am configuring it to run my jobs. My target is to have some task run inside a docker container.
![[SOLVED] Laravel docker /usr/sbin/apache2ctl,: not found exited with code 127](https://res.cloudinary.com/brightsoftwares/image/upload/t_BSBlogImage/v1653595902/daniel-jensen-UDleHDOhBZ8-unsplash_prytio.jpg)
[SOLVED] Laravel docker /usr/sbin/apache2ctl,: not found exited with code 127
I recently finished a Laravel project and I steped one more step to package it in docker. In the process I encountered a strange behaviour. The docker-compose tool threw this error /usr/sbin/apache2ctl,: not found exited with code 127 at me. I finally managed to solve it. Here is how.
![[SOLVED] Could not open input file: artisan in Laravel using docker image](https://res.cloudinary.com/brightsoftwares/image/upload/t_BSBlogImage/v1653589966/pexels-greta-hoffman-7859013_qwwcme.jpg)
[SOLVED] Could not open input file: artisan in Laravel using docker image
When I run my laravel application, I get the error Laravel docker image Could not open input file: /var/www/html/artisan. I finally found the root cause of the issue, let me share it with you.

7 easy steps to deploy a laravel application in a docker container
Laravel is a very useful PHP framework to build awesome projets. It has interesting tools that allow a developper to quickly release a prototype of his/her application. I am a fan of organizing my application inside containers for easy deployment and dependencies management. I came accross an interesting project I wanted to deploy and test. I though I would share with you the steps to perform such a deployment.

How do I access the host port in a Docker container?
Most of the time when you configure your kubernetes cluster, using the default ingress controller settings works. But when you need to do something custom, you may run into problems.

3 façons de connecter votre conteneur Dolibarr à une base de données locale
L’une des priorités d’un administrateur système est l’optimisation des performances des déploiements et de l’infrastructure sous-jacente. J’ai un mariadb déployé et en cours d’exécution sur un serveur Linux. Il est optimisé pour les performances et le stockage de la base de données. Maintenant, je prévois de déployer un conteneur dolibarr docker dessus.

How do I connect mysql workbench to mysql inside Docker?
Running your database inside a container is a very portable solution. Some applications like [[2022-01-15-3-ways-to-connect-your-dolibarr-container-to-local-database Dolibarr]] or [[2022-05-31-solved-laravel-docker-image-could-not-open-input-file-var-www-html-artisan laravel]] need a mysql database to run. You can compose them also inside a container. It is also reproductible. But how do you manage the data inside that container?

3 ways to connect your Dolibarr container to local database
One of the priorities of a system administrator is the performance optimization of the deployments and the underlying infrastructure. I have a deployed and running mariadb on a linux server. It is optimized for performance and database storage. Now I am planning deploying a dolibarr docker container on top of it. How can I connect from the dolibarr docker container to the local mariadb database?

Une solution pour cannot TCP connect from outside Virtual Machine, network traffic not forwarded to Service Port
La plupart du temps, lorsque vous configurez votre cluster Kubernetes, l’utilisation des paramètres du contrôleur d’entrée par défaut fonctionne. Mais lorsque vous devez faire quelque chose de personnalisé, vous pouvez rencontrer des problèmes. Votre docker sous-jacent et votre moteur kubernetes peuvent vous donner des têtes. Nous allons voir dans cette soluce, comment les réparer et vous redonner le sourire.

How to fix cannot TCP connect from outside Virtual Machine, network traffic not forwarded to Service Port
Most of the time when you configure your kubernetes cluster, using the default ingress controller settings works. But when you need to do something custom, you may run into problems. Your underlying docker and kubernetes engine may give you head eaches. We will see in this walkthrough, how to fix on of these and put a smile back on your face.

How to expose a port on Minikube
When using minikube, you need to expose ports to access your services. In docker, you have a command flag to do that. How do you do the same thing in minikube?

Multiline Properties in kubernetes Helm with ConfigMaps
There are several APIs in Kubernetes. A ConfigMap is one of these. It is an object which helps to storing some non-confidential data. The data is in the form of key-value pairs. Some use envrionment variables. In this blog post, we will see how you can show multi-value lines.

Docker tip : inspect and less
Docker inspect and less

Top 5 Questions from “How to become a Docker Power User” session at DockerCon 2020
This is a guest post from Brian Christner. Brian is a Docker Captain since 2016, host of The Byte podcast, and Co-Founder & Site Reliability Engineer at 56K.Cloud. At 56K.Cloud, he helps companies to adapt technologies and concepts like Cloud, Containers, and DevOps. 56K.Cloud is a Technology company from Switzerland focusing on Automation, IoT, Containerization, and DevOps.

How To Setup Your Local Node.js Development Environment Using Docker
Docker is the defacto toolset for building modern applications and setting up a CI/CD pipeline – helping you build, ship and run your applications in containers on-prem and in the cloud.