14
votes
Accepted
How to setup Magento 2 with Docker
I've been using for the last 6 months the docker images created by Fabrizio Balliano It works nicely on ubuntu. And you have a readme file explaining what you need to do to get it running.
11
votes
How to setup Magento 2 with Docker
You can use these files to setup your docker environment easy to use, visit link below - https://github.com/markoshust/docker-magento
You can setup on both environments windows and mac. I hope so it ...
6
votes
Magento 2: Run commands in Docker
The better way is to open your container, you can use the command:
docker exec -ti CONTAINER_NAME bash
so you will enter into docker container and use all commands that you want execute normally.
...
6
votes
Accepted
Magento 2 docker image
https://hub.docker.com/r/rafaelcgstz/magento2/
I created some images to Magento, this image to Magento 2 has:
PHP 7.0
Apache 2.4
Composer
MariaDB
Magerun
DevAlias CLI
Utils (GIT, VIM, UNZIP, CURL, ...
5
votes
Accepted
Magento 2 development: use or not Redis and Varnish?
Especially for Varnish it makes sense to use and test ist during development as you can run into big problems laster.
I just read Alan Kent's (Magento Chief Architect) Blogpost today where he ...
5
votes
Accepted
Add database getting error SQLSTATE[HY000] [2002] No such file or directory
Try to replace localhost to 127.0.0.1 and check
This is commonly caused by a different instance of PHP being used by the PHP command line compared to the web server. In particular, mysql.sock might ...
5
votes
Accepted
Magento 2 Vue Storefront error can't start docker in background
Answering your question Implementing vue is possible without docker?
In development mode of vuestorefront, you need to install docker from here
You can bypass docker in production mode as ...
4
votes
Accepted
Scaling Magento 2 on multiple containers in production with generated code
Not sure why this question got downvoted; looking around the Internet there is precious little information about how people should run Magento 2 (Open Source or Enterprise) in a scalable, production, ...
4
votes
Accepted
How to setup Docker Image for Magento 2 on Mac Book?
Here is how I figured it out:
Step 1. Install Docker
https://docs.docker.com/docker-for-mac/install/
Step 2. Clone Docker Image for Magento 2
https://github.com/rhinos-dubai/docker-magento2
or
...
4
votes
Magento 2.4 Best way setup with Docker environment
You can use these files to setup you docker environment easy to use visit link - https://github.com/markoshust/docker-magento
I hope so it will help you.
3
votes
How to setup Magento 2 with Docker
I am following Magento Commerce Cloud > Docker development > Launch Docker > Developer mode so that I can stay updated with the official Magento docker development.
Working fine in MacOS for ...
3
votes
Accepted
Docker - can't connect to php7.0-fpm.sock
In nginx configuration try use
upstream fastcgi_backend {
server php:9000;
}
3
votes
Magento 2.4 Varnish error STACK OVERFLOW
I see that you set the value of thread_pool_stack to a very high number, and apparently it didn't make a difference.
Verifying the settings
The easiest way to figure out if Varnish took over these ...
2
votes
Accepted
magento2 cli with docker
I guess you can solve it by running Magento commands inside container.
You need to login into container first:
docker exec -ti 281cbd203f92 /bin/bash
After that you need to change current directory ...
2
votes
Magento devbox not install
you need to create file .env with following content
COMPOSE_CONVERT_WINDOWS_PATHS=1 and put that file next to docker-compose.yml
Note : file without name is not possible to make in windows GUI so ...
2
votes
js not load properly in docker devbox
The issue is occur because after install magento 2 you haven't deploy its static content. So magento 2 unable to find your css and js. Try run below command in same sequence :
To resolve this issue ...
2
votes
Accepted
File Permissions Magento 2
Try running these commands to remove and recreate the folders.
Out of the container:
sudo rm -rf ./var/composer_home ./composer.lock ./vendor
Inside the container:
mkdir /var/www/html/vendor/
...
2
votes
File Permissions Magento 2
Generally there can be 2 possibilities:
The /var folder doesn't have correct permissions - they should be 755
The /var folder doesn't have the correct ownership - should be the Magento file system ...
2
votes
Accepted
How to install n98-magerun on a docker container
Add this to your Dockerfile.
RUN \
curl -sS -o n98-magerun.phar https://files.magerun.net/n98-magerun.phar && \
curl -sS -o n98-magerun.phar.sha256 https://files.magerun.net/sha256.php?file=...
2
votes
Docker dev environment doesn't allow command line commands
You need access your container using:
docker exec -ti CONTAINER_NAME bash
To discover the name use docker ps.
2
votes
magento 2 development with docker
From my experience
You should create private repository in github or bitbucket for store all code. You can management all pull/push code by git. Bitbucket is free (good plus) for private repository.
...
2
votes
Magento 2 - Really Bad Performance in Docker
Shared Filesystem for Docker on MacOS is nightmarishly slow.
I will suggest:
Do not use a shared filesystem at all (and use PhpStorm Deploymechanism or http://docker-sync.io/)
Share only your code ...
2
votes
Static Content 404 with Magento 2 and Nginx
I followed the above (moving the /static block inside the /pub block) but it didn't work for me. In the end, what did the trick was then adding in a new block for /static as follows :
location /...
2
votes
Magento2 Installation Error by 0%
You need to correct your permissions .
Do a :
rm -rf generated/*
rm -rf pub/static/*
Than
find app/code var/view_preprocessed vendor pub/static app/etc generated/code generated/metadata \( -type ...
2
votes
Magento is not supported on Windows OS and Mac OS?
it can be installed anywhere where you can run LAMP stack.
support and not working is different.
2
votes
How to setup more than one project in docker?
For question number 1:
— You can go to docker-compose file and look for apache service then change port to something like 8085:80 then your project baseURL would be like 127.0.0.1:8085 or http://...
2
votes
How to setup more than one project in docker?
I know maybe this isn't the answer you are expected but I have a different docker compose file for each project. Once I've finished working on one project I docker-compose down -v project, switch to ...
2
votes
Accepted
Magento 1.9.X: how can I run magento on docker-compose?
To prepare your docker environment for magento 2 you can follow the following steps:
Environment docker magento 2
Ubuntu 18.04.2 LTS
Apache/2.4.29
Webmin 1.920
Composer 1.8.6
Git 2.17.1
2
votes
Magento Docker container stops at "Running Magento install script"
I think your best option is to raise an issue to the Bitnami team and ask for help there.
If you encountered a problem running this container, you can file an
issue. For us to provide better support, ...
1
vote
official Docker image Magento 2
Unfortunately there is no official image so far :(
However magento docs have instructions for docker development of enterprise version (magento commerce)
Ref: https://devdocs.magento.com/guides/v2.2/...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
docker × 139magento2 × 98
installation × 18
magento2.3 × 10
magento2.4 × 9
deployment × 7
database × 6
redis × 6
magento-2.1 × 5
php × 5
magento2.2 × 5
magento-cloud × 5
magento-1.9 × 4
composer × 4
nginx × 4
varnish × 4
elasticsearch × 4
static-content-deploy × 4
deploy × 4
windows × 4
ubuntu × 4
containers × 4
cli × 3
localhost × 3
setup × 3