3 Star 0 Fork 0

Gitee 极速下载 / dockland

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/dynport/dockland
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

Dockland

Yet another docker web ui.

Requirements

  • Ruby >= 1.9
  • graphviz

Usage

git clone https://github.com/dynport/dockland.git /opt/dockland
cd /opt/dockland
bundle
bundle exec ./bin/dockland -h <DOCKER_API_HOST>

open http://127.0.0.1:9292

Deploying dockland inside a docker container

Dockerfile

# /tmp/dockland.dockerfile
FROM ubuntu:12.04

RUN sed 's/main$/main universe/' -i /etc/apt/sources.list && apt-get update && apt-get upgrade -y
RUN apt-get install ruby1.9.1 ruby1.9.1-dev build-essential git-core graphviz libssl-dev -y

RUN git clone https://github.com/dynport/dockland.git /app

# this is to speed up updates
RUN cd /app && gem install bundler --no-ri --no-rdoc && bundle

# change the revision to update your image
ENV APP_REVISION 51f5445abeeb080568edeca248d68b29a66f1387
RUN cd /app && git fetch -q origin  && git reset -q --hard $APP_REVISION && git clean -q -d -x -f && bundle

EXPOSE 80

CMD cd /app && bundle exec ./bin/dockland -h ${DOCKER_HOST-http://172.16.42.1:4243} -p 80

Build Image

$ docker build -t dockland:dockland - < /tmp/dockland.dockerfile

Startup

$ id=$(docker run -d dockland:dockland)
$ curl -I http://127.0.0.1:$(docker port $id 80)

In that case you would need to bind the docker daemon either on the 0.0.0.0 (so you probably want to have some firewall setup) or the 172.16.42.1 interface as the default now seems to be the 127.0.0.1 interface.

/opt/docker/bin/docker -H <0.0.0.0|172.16.42.1> -d 2>&1 | logger -t docker &

You can use an provide an alternative docker host like this

docker run -e DOCKER_HOST=http://docker.host:4243 -d dockland:dockland

To come

  • fetch image graph in parallel
  • add more information to frontend
  • add features like:
    • cleanup dead containers
    • cleanup images without tags
    • ...
Copyright (c) 2013 Tobias Schwab MIT License Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

暂无描述 展开 收起
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/mirrors/dockland.git
git@gitee.com:mirrors/dockland.git
mirrors
dockland
dockland
master

搜索帮助