docker 镜像备份magento 2.2.3

打包百度网盘:php

连接:https://pan.baidu.com/s/1i_lSLt48RlxPonVA7qG5kg  密码:h1delinux

还原:docker load < (filename).targit

 

不使用网盘打包镜像,从新安装:github

github :https://github.com/clean-docker/Magento2docker

dockerhub: https://hub.docker.com/r/rafaelcgstz/magento2/shell

 

要求

苹果系统:ubuntu

安装DockerDocker-composeDocker-syncwindows

视窗:bash

安装DockerDocker-composeDocker-sync服务器

Linux的:

安装DockerDocker-compose

如何使用

在终端中执行,更改MYMAGENTO2以使用项目名称:

curl -s https://raw.githubusercontent.com/clean-docker/Magento2/master/init | bash -s MYMAGENTO2 clone

若是要安装Magento 2,请使用以下:

cd MYMAGENTO2
./shell
rm index.php
install-magento2

您能够指定要安装的版本(例如install-magento2 2.2)。

面板

享受您的新面板!

Web服务器: http:// localhost /

PHPMyAdmin: http:// localhost:8080

本地电子邮件: http:// localhost:8025

功能命令

命令 描述 选项和示例
./init 若是您没有使用上面的CURL setup命令,请使用此命令更改项目名称。 ./init MYMAGENTO2
./start 若是您继续不使用CURL,则能够手动启动容器  
./stop 中止您的项目容器  
./kill 中止容器并删除为特定项目建立的容器,网络,卷和映像  
./shell 访问您的容器 ./shell root
./magento 使用Magento CLI的强大功能  
./n98 根据须要使用Magerun命令  
./grunt-init 准备使用Grunt  
./grunt 在您的主题中或彻底使用Grunt,它将执行部署和观察者。 ./grunt luma
./xdebug 启用/禁用XDebug  
./composer 使用Composer命令 ./composer update

Elasticsearch

要使用弹性搜索,您能够使用如下命令:

$ docker-compose -f docker-compose.yml -f docker-compose.elasticsearch.yml up

或使用分离模式在后台运行

$ docker-compose -f docker-compose.yml -f docker-compose.elasticsearch.yml up -d

Elasticsearch: http:// localhost:9200

相关文章
相关标签/搜索