docker - Mattermost docker 预览

标签 docker port publish mattermost manjaro

我是一个新手,我一直在尝试在 docker 上安装 Mattermost(slack 替代方案)的预览版来尝试一下。我一直遵循官方指南。

拱门

Install Docker using the following commands:

pacman -S docker
systemctl enable docker.service
systemctl start docker.service
gpasswd -a <username> docker
newgrp docker

Start Docker container:

docker run --name mattermost-preview -d --publish 8065:8065 mattermost/mattermost-preview

When Docker is done fetching the image, open http://localhost:8065/ in your browser.

不幸的是我无法打开 localhost:8065 服务。

我已经在两个 Docker 的错误跟踪器中列出了这个问题 https://github.com/docker/docker/issues/23730

我在 ubuntu 14.04 上安装了它,但仍然遇到同样的问题。

docker信息输出

Containers: 3
 Running: 1
 Paused: 0
 Stopped: 2
Images: 2
Server Version: 1.11.2
Storage Driver: aufs
 Root Dir: /var/lib/docker/aufs
 Backing Filesystem: extfs
 Dirs: 33
 Dirperm1 Supported: false
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins: 
 Volume: local
 Network: null host bridge
Kernel Version: 3.13.0-32-generic
Operating System: Ubuntu 14.04.1 LTS
OSType: linux
Architecture: x86_64
CPUs: 4
Total Memory: 3.767 GiB
Name: warmachine
ID: FICU:HLW6:7J7X:NFWJ:HX27:32U4:HQZB:I2UW:K5TI:DDAB:EBC3:F2LW
Docker Root Dir: /var/lib/docker
Debug mode (client): false
Debug mode (server): false
Registry: https://index.docker.io/v1/
WARNING: No swap limit support

docker版本的输出

Client:
Version:      1.11.2    
API version:  1.23
Go version:   go1.5.4
Git commit:   b9f10c9
Built:        Wed Jun  1 21:47:50 2016
OS/Arch:      linux/amd64

Server:
Version:      1.11.2
API version:  1.23
Go version:   go1.5.4
Git commit:   b9f10c9
Built:        Wed Jun  1 21:47:50 2016
OS/Arch:      linux/amd64

最佳答案

这似乎是应用程序打包的问题。已经reported on their github

要排除您自己的 docker 安装的任何问题,您始终可以使用以下方法测试端口转发:

docker run -it --rm -p 8080:80 debian /bin/sh -c "apt-get update; apt-get install -yq netcat; nc -l -p 80"

然后在另一个终端中:

nc -q 1 127.0.0.1 8080 <<EOF
hello world
EOF

如果您在 docker 终端上看到“hello world”,则说明您的 docker 安装正常。

关于docker - Mattermost docker 预览,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37894562/

相关文章:

sql-server - 注册新的 SQL 2000 服务器时更改默认端口

port - cpanel端口号2082和2083的区别

build - Ivy 和快照 (Nexus)

visual-studio - Visual Studio-发布到多个位置?

docker - 谷歌容器注册 + 谷歌计算引擎 + Docker

node.js - Chrome 中的 Webpack 不完整 block 编码

ruby-on-rails - 在vscode中将调试配置为Ruby on Rails和Docker [已解决]

python - 用python编写的端口扫描仪无法正常显示输出

azure - 在 Azure WebJob 的publish-settings.json 中包含静态文件

docker - 在Docker上从Amazon Linux 2运行ASP.NET Core应用-全局化