Magento 的docker创建

Requirements:(2个容器)

1. Mysqldb or Mariadb linked as 'db'

docker run -td --name mariadb -e USER=user -e PASS=password paintedfox/mariadb

2. Memcached linekd 'cache'

docker run --name memcached -d -p 11211 sylvainlasnier/memcached


Build the image and run it
git clone https://github.com/guewen/docker-magento.git .
cd docker-magento
docker build -t docker-magento .
docker run -p 80:80 --link mariadb:db --link memcached:cache -td docker-magento


Now visit your public IP in your browser and you will see the frontend. The login/password for the backend is admin/admin25.


以上为odoo-connector中对docker运行Magento的方法。实测失败

真要运行很简单

docker search Magento
直接拉那个星最多的
docker pull ...
docker run -d ... -p 80:80
本地访问0.0.0.0:80即可

你可能感兴趣的:(Magento 的docker创建)