在Docker失败中运行Zimbra图像

时间:2018-04-16 08:43:59

标签: ubuntu docker zimbra

我正在尝试使用docker启动Zimbra,但是在拉动容器后我似乎一直遇到问题。

我使用以下命令启动容器:

docker run -p 35:25 -p 8021:80 -p 465:465 -p 587:587 -p 110:110 -p 143:143 -p 993:993 -p 995:995 -p 7443:443 -p 8082:8080 -p 8443:8443 -p 7071:7071 -p 9071:9071 -h webmail.[hidden].com--dns 8.8.8.8 -i -t -e PASSWORD=[hidden] jorgedlcruz/zimbra

端口配置是由于机器上运行的其他安装造成的,但我似乎无法启动它。 使用上述命令时会给出以下输出:

Configuring DNS Server
 * Restarting DNS forwarder and DHCP server configuration syntax check                                                                                                                                                                                  [fail] 
Downloading Zimbra Collaboration 8.7.11
--2018-04-12 21:25:23--  https://files.zimbra.com/downloads/8.7.11_GA/zcs-8.7.11_GA_1854.UBUNTU16_64.20170531151956.tgz
Resolving files.zimbra.com (files.zimbra.com)... 54.192.198.49
Connecting to files.zimbra.com (files.zimbra.com)|54.192.198.49|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 267603851 (255M) [binary/octet-stream]
Saving to: '/opt/zimbra-install/zimbra-zcs-8.7.11.tar.gz'

/opt/zimbra-install/zimbra-zcs-8.7.11.tar.gz                    100%[======================================================================================================================================================>] 255.21M  34.9MB/s    in 6.7s    

2018-04-12 21:25:30 (38.2 MB/s) - '/opt/zimbra-install/zimbra-zcs-8.7.11.tar.gz' saved [267603851/267603851]

Extracting files from the archive
zcs-8.7.11_GA_1854.UBUNTU16_64.20170531151956/
zcs-8.7.11_GA_1854.UBUNTU16_64.20170531151956/README.txt
zcs-8.7.11_GA_1854.UBUNTU16_64.20170531151956/util/
zcs-8.7.11_GA_1854.UBUNTU16_64.20170531151956/util/addUser.sh
zcs-8.7.11_GA_1854.UBUNTU16_64.20170531151956/util/globals.sh
zcs-8.7.11_GA_1854.UBUNTU16_64.20170531151956/util/modules/
zcs-8.7.11_GA_1854.UBUNTU16_64.20170531151956/util/modules/packages.sh
zcs-8.7.11_GA_1854.UBUNTU16_64.20170531151956/util/modules/getconfig.sh
zcs-8.7.11_GA_1854.UBUNTU16_64.20170531151956/util/modules/postinstall.sh
zcs-8.7.11_GA_1854.UBUNTU16_64.20170531151956/util/utilfunc.sh
zcs-8.7.11_GA_1854.UBUNTU16_64.20170531151956/readme_binary_en_US.txt
zcs-8.7.11_GA_1854.UBUNTU16_64.20170531151956/lib/
zcs-8.7.11_GA_1854.UBUNTU16_64.20170531151956/lib/jars/
zcs-8.7.11_GA_1854.UBUNTU16_64.20170531151956/packages/
zcs-8.7.11_GA_1854.UBUNTU16_64.20170531151956/packages/zimbra-store_8.7.11.GA.1854.UBUNTU16.64_amd64.deb
zcs-8.7.11_GA_1854.UBUNTU16_64.20170531151956/packages/zimbra-mta_8.7.11.GA.1854.UBUNTU16.64_amd64.deb
zcs-8.7.11_GA_1854.UBUNTU16_64.20170531151956/packages/zimbra-logger_8.7.11.GA.1854.UBUNTU16.64_amd64.deb
zcs-8.7.11_GA_1854.UBUNTU16_64.20170531151956/packages/zimbra-apache_8.7.11.GA.1854.UBUNTU16.64_amd64.deb
zcs-8.7.11_GA_1854.UBUNTU16_64.20170531151956/packages/zimbra-proxy_8.7.11.GA.1854.UBUNTU16.64_amd64.deb
zcs-8.7.11_GA_1854.UBUNTU16_64.20170531151956/packages/zimbra-snmp_8.7.11.GA.1854.UBUNTU16.64_amd64.deb
zcs-8.7.11_GA_1854.UBUNTU16_64.20170531151956/packages/zimbra-ldap_8.7.11.GA.1854.UBUNTU16.64_amd64.deb
zcs-8.7.11_GA_1854.UBUNTU16_64.20170531151956/packages/zimbra-core_8.7.11.GA.1854.UBUNTU16.64_amd64.deb
zcs-8.7.11_GA_1854.UBUNTU16_64.20170531151956/packages/zimbra-spell_8.7.11.GA.1854.UBUNTU16.64_amd64.deb
zcs-8.7.11_GA_1854.UBUNTU16_64.20170531151956/packages/zimbra-dnscache_8.7.11.GA.1854.UBUNTU16.64_amd64.deb
zcs-8.7.11_GA_1854.UBUNTU16_64.20170531151956/docs/
zcs-8.7.11_GA_1854.UBUNTU16_64.20170531151956/docs/zcl.txt
zcs-8.7.11_GA_1854.UBUNTU16_64.20170531151956/docs/en_US/
zcs-8.7.11_GA_1854.UBUNTU16_64.20170531151956/docs/en_US/Migration_Exch_Admin.pdf
zcs-8.7.11_GA_1854.UBUNTU16_64.20170531151956/docs/en_US/User Instructions for ZCS Import Wizard.pdf
zcs-8.7.11_GA_1854.UBUNTU16_64.20170531151956/docs/en_US/zimbra_user_guide.pdf
zcs-8.7.11_GA_1854.UBUNTU16_64.20170531151956/docs/en_US/Fedora Server Config.pdf
zcs-8.7.11_GA_1854.UBUNTU16_64.20170531151956/docs/en_US/quick_start.pdf
zcs-8.7.11_GA_1854.UBUNTU16_64.20170531151956/docs/en_US/Import_Wizard_Outlook.pdf
zcs-8.7.11_GA_1854.UBUNTU16_64.20170531151956/docs/en_US/admin.pdf
zcs-8.7.11_GA_1854.UBUNTU16_64.20170531151956/docs/en_US/MigrationWizard_Domino.pdf
zcs-8.7.11_GA_1854.UBUNTU16_64.20170531151956/docs/en_US/MigrationWizard.pdf
zcs-8.7.11_GA_1854.UBUNTU16_64.20170531151956/docs/en_US/RNZCSO_2005Beta.pdf
zcs-8.7.11_GA_1854.UBUNTU16_64.20170531151956/docs/en_US/OSmultiserverinstall.pdf
zcs-8.7.11_GA_1854.UBUNTU16_64.20170531151956/docs/en_US/Zimbra iCalendar Migration Guide.pdf
zcs-8.7.11_GA_1854.UBUNTU16_64.20170531151956/data/
zcs-8.7.11_GA_1854.UBUNTU16_64.20170531151956/data/versions-init.sql
zcs-8.7.11_GA_1854.UBUNTU16_64.20170531151956/install.sh
zcs-8.7.11_GA_1854.UBUNTU16_64.20170531151956/bin/
zcs-8.7.11_GA_1854.UBUNTU16_64.20170531151956/bin/checkService.pl
zcs-8.7.11_GA_1854.UBUNTU16_64.20170531151956/bin/checkLicense.pl
zcs-8.7.11_GA_1854.UBUNTU16_64.20170531151956/bin/get_plat_tag.sh
zcs-8.7.11_GA_1854.UBUNTU16_64.20170531151956/bin/zmValidateLdap.pl
zcs-8.7.11_GA_1854.UBUNTU16_64.20170531151956/bin/zmdbintegrityreport
zcs-8.7.11_GA_1854.UBUNTU16_64.20170531151956/.BUILD_TYPE
Installing Zimbra Collaboration just the Software

Operations logged to /tmp/install.log.rJRbWY5R
Checking for existing installation...
    zimbra-chat...NOT FOUND
    zimbra-drive...NOT FOUND
    zimbra-suiteplus...NOT FOUND
    zimbra-ldap...NOT FOUND
    zimbra-logger...NOT FOUND
    zimbra-mta...NOT FOUND
    zimbra-dnscache...NOT FOUND
    zimbra-snmp...NOT FOUND
    zimbra-store...NOT FOUND
    zimbra-apache...NOT FOUND
    zimbra-spell...NOT FOUND
    zimbra-convertd...NOT FOUND
    zimbra-memcached...NOT FOUND
    zimbra-proxy...NOT FOUND
    zimbra-archiving...NOT FOUND
    zimbra-core...NOT FOUND


----------------------------------------------------------------------
PLEASE READ THIS AGREEMENT CAREFULLY BEFORE USING THE SOFTWARE.
SYNACOR, INC. ("SYNACOR") WILL ONLY LICENSE THIS SOFTWARE TO YOU IF YOU
FIRST ACCEPT THE TERMS OF THIS AGREEMENT. BY DOWNLOADING OR INSTALLING
THE SOFTWARE, OR USING THE PRODUCT, YOU ARE CONSENTING TO BE BOUND BY
THIS AGREEMENT. IF YOU DO NOT AGREE TO ALL OF THE TERMS OF THIS
AGREEMENT, THEN DO NOT DOWNLOAD, INSTALL OR USE THE PRODUCT.

License Terms for this Zimbra Collaboration Suite Software:
https://www.zimbra.com/license/zimbra-public-eula-2-6.html
----------------------------------------------------------------------



Do you agree with the terms of the software license agreement? [N] 




Use Zimbra's package repository [Y] 
Importing Zimbra GPG key

Configuring package repository
ERROR: Unable to install packages via apt-get
Please fix system to allow normal package installation before proceeding
Installing Zimbra Collaboration injecting the configuration
/opt/start.sh: line 140: /opt/zimbra/libexec/zmsetup.pl: No such file or directory
No passwd entry for user 'zimbra'
You can access now to your Zimbra Collaboration Server

但遗憾的是,一切都没有发生。 我们将非常感谢任何正确方向的帮助!

更新:使用fly2matrix解决方案我已成功安装了docker。然而,由于我认为在DNS上,它会卡住。容器以:

开头的地方

* Restarting DNS forwarder and DHCP server configuration syntax check [fail]

以下是Full output log

zmsetup log

1 个答案:

答案 0 :(得分:1)

只需要很少的额外步骤:

#>apt-get update

所以请执行以下步骤,因为您没有自己的Dockerfile :(使用您自己的Dockerfile,它会干净简单)

创建容器并启动它(我将此容器命名为zim)

#>docker run -p 25:25 -p 80:80 -p 465:465 -p 587:587 -p 110:110 -p 143:143 -p 993:993 -p 995:995 -p 443:443 -p 8080:8080 -p 8443:8443 -p 7071:7071 -p 9071:9071 -h zimbra-docker.zimbra.io --dns 127.0.0.1 --dns 8.8.8.8 -i -t -e PASSWORD=Zimbra2017 -d --name zim jorgedlcruz/zimbra

:然后打开容器的控制台

#>docker exec -it zim bash
root@zimbra-docker:~#apt-get update

然后使用

停止容器
#>docker stop zim

然后使用并启动容器并查看docker logs

#>docker start zim ; docker logs -f zim

Use Zimbra's package repository [Y]

Configuring package repository

Checking for installable packages

Found zimbra-core (local)
Found zimbra-ldap (local)
Found zimbra-logger (local)
Found zimbra-mta (local)
Found zimbra-dnscache (local)
Found zimbra-snmp (local)
Found zimbra-store (local)
Found zimbra-apache (local)
Found zimbra-spell (local)
Found zimbra-memcached (repo)
Found zimbra-proxy (local)
Found zimbra-chat (repo)

Select the packages to install

Install zimbra-ldap [Y]
Install zimbra-logger [Y]
Install zimbra-mta [Y]
Install zimbra-dnscache [Y]
Install zimbra-snmp [Y]
Install zimbra-store [Y]
Install zimbra-apache [Y]
Install zimbra-spell [Y]
Install zimbra-memcached [Y]
Install zimbra-proxy [Y]
Install zimbra-chat [Y]
Install zimbra-drive [Y] Checking required space for zimbra-core
Checking space for zimbra-store
/opt/zimbra requires at least 5GB of space to install.