Public Repository

Last pushed: 3 years ago
Short Description
Magento 2 docker image
Full Description

Supported tags and respective Dockerfile links

Magento 2

Welcome to Magento 2 installation! We're glad you chose to install Magento 2, a cutting edge, feature-rich eCommerce solution that gets results.

The installation instructions that used to be here are now published on our GitHub site. Use the information on this page to get started or go directly to the guide.

How to use this image


First you need to create a new Magento 2 project:

composer create-project -n magento/product-community-edition magento2 1.0.0-beta1 && cd magento2

Then you add a docker-compose.yml file with your custom values:

  image: chadrien/magento2:5.6-apache
    - db
    - 80
    - ".:/var/www"
  image: mysql
    MYSQL_ROOT_PASSWORD: rootpassword
    MYSQL_DATABASE: magento2
    MYSQL_USER: magento2
    MYSQL_PASSWORD: mySQLpassword

Now you can start your containers:

docker-compose up -d
docker-compose port web 80

Then open your browser to to start Magento2 setup wizard.

You are now ready to develop your Magento 2 modules in app/code and your changes will be visible in Docker.


If you just want to try Magento 2 easily, just adapt this docker commands with your custom values:

docker run --name magento2_db -d -e MYSQL_ROOT_PASSWORD="rootpassword" -e MYSQL_DATABASE="magento2" -e MYSQL_USER="magento2" -e MYSQL_PASSWORD="yourpassword" mysql
docker run --name magento2_web -d -p 80 --link=magento2_db chadrien/magento2:5.6-apache-full-1.0.0-beta
docker port magento2_web

Then you should be able to install on

Docker Pull Command