Skip to content

Commit

Permalink
Fix import issue
Browse files Browse the repository at this point in the history
Also add some better dev env notes
  • Loading branch information
dave-lang committed Nov 4, 2024
1 parent 7ad6148 commit d36de09
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion docker/index.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
1 change: 1 addition & 0 deletions tools/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tools/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit d36de09

Please sign in to comment.