diff --git a/README.md b/README.md index 11b7998..c633763 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,8 @@ It uses the Docker CLI and abuses the `--format {{}}` arg for output parsing. Currently translated to English, Italian and Polish. UI is responsive across all device sizes. +If you're after a full Docker web interface you should consider https://www.portainer.io or https://yacht.sh. + ## Install The fastest way to install is to follow the "Http URL" method (https://webmin.com/docs/modules/webmin-configuration/#installing) and use the latest release package using [https://github.com/dave-lang/webmin-docker/releases/latest/download/docker.wbm.gz](https://github.com/dave-lang/webmin-docker/releases/latest/download/docker.wbm.gz). @@ -33,7 +35,9 @@ Docker configuration has been setup to allow easier development. This environment has Webmin and Docker already installed, along with a very basic Ubuntu 18 docker config ready to start in the container (Docker in Docker). -The plugin is installed in the Webmin environment via shared folder, changes will appear immediately. +The plugin is installed in the Webmin environment via shared folder, changes will appear immediately. This is done via: +- Sharing the ./docker directory into webmin directory using Docker volume (see docker-compose.yml) +- Adding the ACL permission for the module via the Dockerfile 1. `cd tools` 2. `docker-compose up -d` to run docker compose as daemon diff --git a/docker/index.cgi b/docker/index.cgi index bf38acb..33f663d 100644 --- a/docker/index.cgi +++ b/docker/index.cgi @@ -3,7 +3,7 @@ use strict; use warnings; use Data::Dumper; -require 'docker-lib.pl'; +require './docker-lib.pl'; ui_print_header(undef, &text('index_title'), "", undef, undef, 1); diff --git a/tools/Dockerfile b/tools/Dockerfile index cb82e45..b98b4a8 100644 --- a/tools/Dockerfile +++ b/tools/Dockerfile @@ -34,6 +34,7 @@ RUN echo root:password | chpasswd && \ apt-get install -y webmin && \ apt-get clean && \ echo "$(cat /etc/webmin/webmin.acl) docker" > /etc/webmin/webmin.acl +# Last line adds docker module to webmin's acl, for easier development. Also requires the volume config EXPOSE 10000 ENV LC_ALL C.UTF-8 diff --git a/tools/docker-compose.yml b/tools/docker-compose.yml index 956bd49..281137f 100644 --- a/tools/docker-compose.yml +++ b/tools/docker-compose.yml @@ -7,7 +7,7 @@ services: build: context: ./ volumes: - - ../docker:/usr/share/webmin/docker:rw + - ../docker:/usr/share/webmin/docker:rw # This also requires the ACL permission to load in Webmin, see dockerfile - ./dind:/home/dind:rw ports: - "10000:10000"