我是一名新手,我一直在尝试在docker上安装实质(预览版)预览,以进行尝试.我一直在遵循官方指南.
拱
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
原文链接:https://www.f2er.com/docker/532653.html要排除您自己的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安装就可以了.