Magento 的docker建立

weixin_34249678發表於2017-09-19

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即可

相關文章