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

相關文章
相關標籤/搜索