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

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容