Questions tagged [docker]

Questions related to running Magento and related services inside Docker containers

Filter by
Sorted by
Tagged with
18 votes
4 answers
26k views

How to setup Magento 2 with Docker

I want to setup Magento 2 with docker and system of containers are ubuntu. Can anyone help me, how to setup docker file?
MrTo-Kane's user avatar
  • 3,656
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.
Saditha Udayanga's user avatar
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....
Hardik Makwana's user avatar
6 votes
2 answers
399 views

How to setup more than one project in docker?

I have successfully installed Magento 2 with sample data using Docker everything works fine but I have below question. Magento 2 project Base URL is 127.0.0.1 How can I change this URL? What if I ...
Sanjay Gohil's user avatar
  • 2,200
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 ...
geerlingguy's user avatar
5 votes
3 answers
2k views

Magento 2 development: use or not Redis and Varnish?

I have several issues using Varnish and Redis, so I disabled to develop. In the Alan Kent's (Magento Chief Architect) post said to use both to develop, I'm using this image Docker below with Redis and ...
Rafael Corrêa Gomes's user avatar
5 votes
2 answers
6k views

File Permissions Magento 2

I am trying to use Mark Shust's repo to install Magento 2 with Docker. For some strange reason, I am getting this error: I tried all the answers here. For more details: https://github.com/...
Avi Kaminetzky's user avatar
5 votes
3 answers
7k views

Docker - can't connect to php7.0-fpm.sock

I'm trying to set up a Magento2 dev environment on Docker with PHP7 & nginx but I'm getting the following error: $ docker logs --details mymagento2docker_nginx_1 2016/10/04 19:18:31 [crit] 7#7: *...
Holly's user avatar
  • 4,863
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 ...
MadzQuestioning's user avatar
4 votes
2 answers
2k views

Cannot access any page in Magento 2.0.9

For testing purpose I wanted to use Docker container with Magento Community Edition. I use alexcheng/magento2 from hub.docker.com. After configuration of database and successful installation of ...
honkingForMoreSleeptime's user avatar
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\...
pgarcess's user avatar
3 votes
2 answers
3k views

Magento 2: Run commands in Docker

I am new to docker and devbox. I have setup DevBox Successfully and its working fine in a local system. I need information how to run CLI ie. php bin/magento cache:flush access phpmyadmin My local ...
Jarnail S's user avatar
  • 4,687
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:...
Mark's user avatar
  • 133
3 votes
2 answers
5k views

Magento 2 - Really Bad Performance in Docker

we are using Docker on macOS for development and deployment and have massive performance problems especially in deployment. Our deployment does a full project build with: git clone composer install ...
bambamboole's user avatar
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 ...
anujeet's user avatar
  • 195
3 votes
0 answers
55 views

clean-docker/Magento2 and PHPStorm

Is anyone else here using cleaning docker (or similar) with PHPStorm? If so, could you please point me in the direction of a few guides to help with getting PHPStorm configured to work? Clean-docker ...
Anthony's user avatar
  • 431
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 ...
MadzQuestioning's user avatar
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 ...
Claudiu Creanga's user avatar
2 votes
2 answers
12k views

Add database getting error SQLSTATE[HY000] [2002] No such file or directory

I tried to install Magento using XAMPP for Linux (I use 32-bit Ubuntu), I've created a database, and when you want to add via Magento Installer I get an error message like this: I've tried a variety ...
Febriyanto Nugroho's user avatar
2 votes
2 answers
4k views

Static Content 404 with Magento 2 and Nginx

Preface: I have read through as many posts as I can find about this issue, but I have tried all solutions suggested already. The Issue Using a quick docker setup to get a local instance of Magento 2 ...
rain2o's user avatar
  • 465
2 votes
1 answer
825 views

magento 2 development with docker

We are 2 developers using Linux,1 designer using Windows. We have 3 environments (develop-virtual,test-virtual in one server). And live-its in different server. We are using git with 3 branches: ...
Siva Kumar Koduru's user avatar
2 votes
1 answer
275 views

Magento devbox not install

I install magento devbox based on docker on windows10pro. And get error ERROR: for web Cannot create container for service web: invalid bind mount spec "C:\magedevbox\shared\logs\php-fpm:/var/...
zRuslan's user avatar
  • 21
2 votes
1 answer
359 views

Difference between magento-cloud variable:list and vendor/bin/ece-tools env:config:show

I'm having issues setting the CRYPT_KEY environment variable in production mode. I can see CRYPT_KEY and env:CRYPT_KEY using the magento-cloud variable:list command, but it isn't recognized when I run ...
user2453676's user avatar
2 votes
1 answer
324 views

Do I need a production database to run integration tests?

I'm trying to run integration tests on our CI server using a docker container. Now the documentation states that I only need to have a test-database (called magento_integration_tests), so I created ...
Giel Berkers's user avatar
  • 12.2k
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.
MJ.'s user avatar
  • 839
2 votes
1 answer
2k views

Magento 2 have Any Port Forwarding restriction

I don't know this is off-topic or not, But I need to know magento2 have any port forwarding restrictions, Because, I have setup port concepts in docker to access my container magento2 to locally ...
Rajkumar .E's user avatar
  • 3,550
2 votes
1 answer
580 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 [...
David Buik's user avatar
2 votes
0 answers
25 views

How to setup Magento 2.x with Asynchronous Messaging using Docker

We wanted to setup Magento 2.x with Asynchronous Messaging using Docker. Previously we did the docker setup for Magento 2.x(Synchronous). We have tried to search for a relative reference for ...
Praveen Kumar S's user avatar
2 votes
0 answers
161 views

Install Magento2 Enterprise on desktop Mac via Docker

I am trying to install a fresh install of Magento2.3.3 enterprise on my local Mac desktop via docker.I am new to docker so maybe i am missing something. I installed composer, and also docker. The ...
Jayreis's user avatar
  • 705
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 ...
theSeeker's user avatar
  • 449
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....
Yogesh's user avatar
  • 1,503
2 votes
2 answers
1k views

Deploying Magento 2 with a docker

I have a project Magento 2. It has a folder docker. Please tell me how to deploy an existing project with the help of a docker? Is there a good tutorial? All I've found is installing a magenta using ...
Eugene Kapelko's user avatar
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 ...
Darth Shirr's user avatar
1 vote
1 answer
4k views

How to setup Docker Image for Magento 2 on Mac Book?

I want to setup Docker for Magento 2. I have gone through number of links but didn't find the solution yet. Can somebody share useful links to do this. Thanks
Ajwad Syed's user avatar
  • 1,591
1 vote
2 answers
695 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 ...
leo's user avatar
  • 1,236
1 vote
2 answers
778 views

Magento is not supported on Windows OS and Mac OS?

I'm trying to upgrade from community edition of Magento 2.3.1 to Enetreprise Edition of M2. I am using docker Image for M2 CE and trying to upgrade to M2 EE. I have tried below ways: https://magento....
Ajwad Syed's user avatar
  • 1,591
1 vote
2 answers
597 views

Magento2 Installation Error by 0%

since a few days I am trying to install Magento with Docker, Composer on Windows 10. So far, I got to the Web-Installation. A huge step for me... After clicking the last step, Magento stuck by 0%. ...
Timm K.'s user avatar
  • 41
1 vote
1 answer
798 views

How to install n98-magerun on a docker container

I have a Magento 1.7 version running on a container, and I would like to use n98-magerun. How can install n98-magerun when using a Dockerfile and not docker-compose?
mikemols's user avatar
  • 129
1 vote
1 answer
2k views

Docker dev environment doesn't allow command line commands

I recently set up a magento2 dev environment with Docker as identified on magento.com. However after installing new extensions I cannot run setup:upgrade or static-content deploy. Is this because of ...
Matthew McLennan's user avatar
1 vote
1 answer
978 views

magento2 cli with docker

How do you run magento commands when using a docker container, like php bin/magento setup:deploy I have a docker container with php 7, mysql 5.6. The website works ok, but if I try to run some ...
Claudiu Creanga's user avatar
1 vote
1 answer
133 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 ...
Jorge Cordero's user avatar
1 vote
1 answer
424 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. ...
Sutariya Parth's user avatar
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 ...
Adarsh M's user avatar
  • 582
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 ...
AntonioC's user avatar
  • 187
1 vote
1 answer
1k views

Magento 2.4.0 Issues using docker with MariaDB

Has anyone else encountered this error? I am using docker-compose.yml file with mariadb:10 image. Schema creation/updates: Current version of RDBMS is not supported. Used Version: 10.5.5-MariaDB-1:10....
user59268's user avatar
  • 103
1 vote
2 answers
2k views

Nginx throwing 404 - Magento 2 Docker Environment for Windows 10

I've been struggling to find a good working Docker container to start working on Magento 2 under Windows 10. I created my own based on this tutorial:https://tech.osteel.me/posts/docker-for-local-web-...
Kalvin Klien's user avatar
1 vote
2 answers
462 views

How to upgrade from Magento 2.3.1 CE to Magento 2.*.* EE?

I am trying to upgrade from community edition to enterprise edition. I have access keys for EE. I am using this docker image for magento 2. P.S: As I do not have docker image for M2 EE so I am trying ...
Ajwad Syed's user avatar
  • 1,591
1 vote
1 answer
2k views

How to setup development environment for magento 2 with docker?

I am trying to install Magento 2 on my macOS Mojave I have installed Docker first. Then, I followed this https://github.com/clean-docker/Magento2 link but stuck at last here is the error that comes ...
Ajwad Syed's user avatar
  • 1,591
1 vote
1 answer
3k views

Magento2: Missing commands on build server

I try to make a Magento2 Pipeline Deployment and running in a awkward error. But first a few words to the deployment: I use a docker container with installed php and nodejs. I copy in the container ...
bambamboole's user avatar
1 vote
1 answer
950 views

Permission Denied (Windows) - M2Devbox Installation Issue

I'm new to Magento, and to Docker for that matter... Managed to get as far as executing the ./m2devbox-init.bat script which pulled the necessary files from the repo and did the installation but ...
Sergio Henriques's user avatar