Questions tagged [docker]

Questions related to running Magento and related services inside Docker containers

Filter by
Sorted by
Tagged with
0 votes
0 answers
9 views

When xdebug is enabled bin/magento commands won't work

I'm using Mark Shuts docker version, If xdebug is enabled, bin/magento commands won't work, and let's say if i run bin/magento cache:clean PhpStorm starts to debug out of nothing. Also I get this ...
4 votes
3 answers
7k views

Invalid template file in Magento 2.3

I have been reading the forum but I can't find any solution to solve my case. I have a custom module where I'm getting the error: 1 exception(s): Exception #0 (Magento\Framework\Exception\...
0 votes
0 answers
16 views

Moving from working prod Magento 2 install to local docker all white screens everywhere. No errors anywhere

We have a working prod version of Magento running at Nexcess. We are trying to debug an integration and want to get it running locally. We've pulled down all the production files and db and have them ...
0 votes
1 answer
24 views

Magento 2.4.6 mulitple vhosts on a single server and Varnish in Docker

Afternoon I've got Varnish running on a Plesk based server and all is working well based upon the instructions from here: https://talk.plesk.com/threads/magento-2-plesk-varnish-setup-in-a-docker....
1 vote
1 answer
2k views

Fatal error: Allowed memory size of 2097152 bytes exhausted (tried to allocate 12288 bytes)

I'm getting the next error after docker-compose up. Fatal error: Allowed memory size of 2097152 bytes exhausted (tried to allocate 12288 bytes) in /var/www/html/vendor/zendframework/zend-...
0 votes
0 answers
14 views

Password protect whole Magento site running on Docker

I'm still finding my feet both in Magento and Docker. Can anyone suggest how I can password protect a whole Magento site running within Docker? I understand the best/easiest way to do this is to ...
0 votes
1 answer
1k views

Magento2 on docker css and js don't load

I installed magento using composer: composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition and load sample data. It works pretty fine on localhost. I ...
5 votes
3 answers
2k views

Run Magento 2 inside a Docker Container

Is there a way to run my existing magento 2 project inside a docker container? I have an existing project that is run inside a vagrant but I'm encountering a lot of issue in the vagrant and we decided ...
1 vote
0 answers
66 views

Docker DDEV / DB error | php_network_getaddresses: getaddrinfo for mysql failed: Temporary failure in name resolution

I'm quite new to the Docker and DDEV material. I've setup a local instance of our Magento repository, using Docker and DDEV. Imported the database and changed the env.php using the following settings ...
2 votes
1 answer
1k views

Error installing Magento 2.3.2: An abstract factory could not create an instance of magentoframeworkencryptionencryptor

I am installing magento 2 via a docker image : quay.io/alexcheng1982/apache2-php7:7.2.12 I keep getting this message: An abstract factory could not create an instance of ...
0 votes
0 answers
22 views

Trouble running Magento on Linux

My friend was trying to run a source code for a store on Magento. His setting up for magento includes PHP 7.4, Docker and Composer. However, this was what he got: I'm new to Magento so I too have no ...
1 vote
0 answers
21 views

Can't use 'bin/magento' commands after running 'composer update --ignore-platform-reqs'

I have magento running from https://github.com/markshust/docker-magento , everything is working fine, but when i run composer update --ignore-platform-reqs then all bin/magento commands stop working. ...
3 votes
2 answers
2k views

Connect Redis to Docker-compose

I've setup my docker to connect with redis. But upon running the application i'm getting this error Fatal error: Uncaught CredisException: Connection to Redis redis:0 failed after 2 failures. Last ...
0 votes
0 answers
61 views

magento2 on kubernetes

I am trying to deploy magento on Kubernetes, I am using php-fpm as a base image with nginx, the magento files are available locally on Docker, but when I move it to Kubernetes i do notenter code here ...
0 votes
1 answer
2k views

Docker Container is much more slower than Server

Server: I'm using Ubuntu 18.10 and run magento2.3.1 with Redis, varnish end the elastic search. when clear the cache, ubuntu take only 10-20seconds to reload the page. when running setup:static-...
3 votes
1 answer
1k views

Magento2 controller_action_predispatch not working with Varnish enabled

I am using Magento version 2.3 Varnish 6 enabled Docker setup I am implementing force login on event 'controller_action_predispatch'. Below is my code: app/code/Vendor/Module/etc/frontend/events.xml ...
0 votes
1 answer
1k views

How to create a docker image of an existing Magento 2 website running with Apache/PHP7.2/MySQL/ubuntu 18.04 version

We have a Magento 2 website and are trying to deploy the website as docker containers running in Kubernetes in GCP. At present, we have the website set up with a LAMP. So I believe we need to have the ...
2 votes
1 answer
1k views

Magento 2 + docker setup getting error of Redis

I have tried to set up one source in the local environment with docker image but getting an issue like below Fatal error: Uncaught CredisException: Connection to Redis failed after 2 failures....
0 votes
0 answers
125 views

Magento2: How to execute Cron in non-root container on Kuberentes?

I've used the Bitnami Magento Helm chart to install Magento 2 on the Kubernetes cluster. By default, the pod and the container are configured not to use root users which is good from a security point ...
1 vote
1 answer
124 views

Docker containers stop after starting them

I'm using Warden with Magento, and I notice that when I start a project with "warden env up", all containers boot up, but immediately some of them stop working (the image shows in gray the ...
1 vote
0 answers
134 views

Issue on Magento 2.4.6 installing on docker

Hi I have installed magento 2 on docker.when I stop and start the container ,it shows error: failed switching to "root": operation not permitted After I run as root also the issue persist....
1 vote
1 answer
130 views

How to deploy markshust/docker-magento image to AWS

I'm running a project locally using markshust/docker-magento, and everything is working fine. Now I need to deploy my store to an AWS cluster using docker, but in my code, I'm not able to see the ...
0 votes
0 answers
16 views

Magento installer existing project with docker: cannot delete file

I got this issue when I tried to run composer install.
6 votes
2 answers
1k views

Scaling Magento 2 on multiple containers in production with generated code

I'm working on some auto-scaling Kubernetes infrastructure to run Magento 2, and I noticed that when I start new containers, I can't have the generated/ directory automatically compiled as part of the ...
1 vote
3 answers
1k views

Magento Docker container stops at "Running Magento install script"

I am new to Magento and Im trying to setup a Magento developer environment on Windows 10 machine with Docker. I'm using Bitnami Magento images and I managed to start up MariaDB and Elasticsearch ...
0 votes
1 answer
304 views

Magento 2 Cloud Docker SSL certificate hostname change

I am using setup my local Cloud Docker https://devdocs.magento.com/cloud/docker/docker-development.html local hostname set - test.test To configure the custom host and port, add the host and port ...
0 votes
2 answers
740 views

Magento Cloud Docker Setup

Does anyone have set up their commerce cloud project with Magento cloud docker, I need help to know how the project and docker will be synced. container bash is working for me but app/ folder is ...
0 votes
1 answer
3k views

Port must be configured within host parameter in Magento 2

I received the following error, "Port must be configured within host parameter. like localhost:3306 in /var/www/html/dbm2/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php" when trying to go ...
1 vote
2 answers
691 views

Magento cloud docker environment cannot send out email to mailhog

I am using the official cloud docker image to setup local environment docker-development However it cannot send out email even if I already put environment: - ENABLE_SENDMAIL=true Under fpm ...
0 votes
4 answers
4k views

Why I am getting error like " Could not validate a connection to Elasticsearch. No alive nodes found in your cluster " on docker with magento 2.4.1

Getting error like - Could not validate a connection to Elasticsearch. No alive nodes found in your cluster I am using docker for magento 2.4.1 while installation i am getting this error. My docker-...
1 vote
1 answer
421 views

How to install Magento 2.4.5-p1 in docker?

We have Run Below Command for install magento in docker. curl -s https://raw.githubusercontent.com/markshust/docker-magento/master/lib/onelinesetup | bash -s -- magento.test 2.4.5-p1 But given error. ...
2 votes
2 answers
3k views

Create docker image for nginx, php 7, mysql and magento2

I want to create a docker image which has nginx, php7 (and required modules), mysql and magento2. Also, want to create docker-compose scripts. Any help will be appreciated.
2 votes
2 answers
3k views

Magento 2 docker image

I am looking for a docker image that can run my already installed Magento 2 instance with php7. So I have a working Magento 2 installation (previously created with MAMP) and I would like to be able ...
2 votes
1 answer
579 views

Magento 2.4.4 READONLY You can't write against a read-only replica

The website keeps going down throwing error. {"0":"READONLY You can't write against a read-only replica.","1":"#1 Cm\RedisSession\Handler->read() called at [...
1 vote
1 answer
2k views

Setup Magento2 Docker Config Apple Silicon M1

is there any way to set up a docker compatible environment for Apple M1? Unfortunately Warden doesn't support the new ARM chips for now. are there any viable alternatives to having a working ...
0 votes
1 answer
211 views

How to run Magento CLI command in docker Magento 2.4.4?

I tried to run the Magento command in docker but am getting the error as per the screenshot. Error ScreenShot:
0 votes
2 answers
959 views

Docker magento 2 setup issues with Mysql (markshust/docker-magento)

Facing a MySQL connection issue while Magento2 setup with docker at local I have followed the steps mentioned in the existing project in the below link markshust/docker-magento: Mark Shust's Docker ...
0 votes
1 answer
488 views

Getting error Could not validate a connection to Elasticsearch. No alive nodes found in your cluster with docker

I am trying to upgrade my magento 2.3.5 to 2.4.4 and seting up magento in docker I have installed elasticsearch as well using docker via docker-compose.yml and able to access it with elasticsearch:...
6 votes
7 answers
10k views

Magento 2.4 Best way setup with Docker environment

What is the best way to Configure Docker environment with Magento 2.4. If some know please give me a solution.
0 votes
0 answers
393 views

Magento 2.4.3p1 - Redis keeps growing

So, we went live with a new m2 shop last week. It all worked well in our develop environment. Since we dockerized the m2 installation, I wasnt expecting much trouble. But our redis cache keeps growing ...
6 votes
2 answers
2k views

Magento 2 Vue Storefront error can't start docker in background

I am implementing the vue storefront using the following reference: https://medium.com/the-vue-storefront-journal/vue-storefront-how-to-install-and-integrate-with-magento2-227767dd65b2 https://docs....
0 votes
1 answer
323 views

Magento 2 all product and category request is redirect to http://baseurl/20us%20search%20us%20search%20us%20search?amnoroute

I have set up my live project in a docker environment using this. https://github.com/bhaveshpp/magento-docker-server/ All thing working perfect but when I search for the product it will redirect my ...
0 votes
1 answer
486 views

Magento Commerce Cloud Docker Deployment - Invalid entity_type specified: customer

I have an existing Magento Commerce Cloud Project which I want to deploy to a Docker environment. Running ./bin/magento-docker ece-deploy I get the following error: Running "deploy" hook. [...
3 votes
5 answers
2k views

Magento 2 - Docker - Data not persisting

I'm currently running Magento 2 on Docker using docker-compose.yml here is the file: version: '3.0' services: web: image: alexcheng/magento2 container_name: magento2 ports: - "80:...
1 vote
0 answers
219 views

Running Deploy Hook via bin/magento-docker ece-deploy results with Could not open input file: ./vendor/bin/ece-tools returned non-zero exit status 1

I am trying to get a project that is already live in production setup and installed on my local for development. After running my bin/magento-docker up -d all of my containers start successfully. But ...
0 votes
1 answer
324 views

Static files don't fully deploy on a docker-based deployment

I'm having trouble implementing the deploy strategy described in e.g. https://info2.magento.com/rs/585-GGD-959/images/The%20New%20Magento%202.2%20Deployment%20Capabilities%20%26%20Patterns.pdf I build ...
0 votes
0 answers
453 views

Magento 2 installation error [--search-engine]

I am installing magento 2.3.4-P2 in a docker container and I am getting this error "The --search-engine option does not exist" when executing the installation command with elasticsearch ...
1 vote
1 answer
369 views

How to know if my ElasticSearch is vulnerable against Log4j?

I don't have Java installed in my main Docker, but I'm using ElasticSearch v6.8.3 in another instance. curl -XGET 'http://localhost:9200' Am I vulnerable against Log4j even not running ElasticSearch ...
0 votes
1 answer
254 views

Selenium : Admin should be able to log into the Magento Admin backend successfully

I'm trying to run functional tests on my magento project following this tutorial i'm using selenium docker image by running this command : docker run -d -p 4444:4444 --shm-size 2g selenium/standalone-...
1 vote
1 answer
1k views

What's the best way to set up Magento on an Apple Silicon?

Has anyone set up Magento 2 on an Apple Silicon with all its dependencies like Elasticsearch, Varnish, Redis, etc.? Currently there are various ways like Magento Cloud Docker, Docker Magento, Warden ...