-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
109 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,21 @@ | ||
# Webmin module for basic docker tasks | ||
|
||
Created to manage a local Docker install for a home server. Allows listing of containers; viewing basic container perf stats and docker state; and starting/stopping/restarting containers. | ||
|
||
It uses the Docker CLI and abuses the `--format {{}}` arg for output parsing. | ||
|
||
## Development | ||
|
||
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). | ||
|
||
1. `cd tools` | ||
2. `docker-compose up` | ||
2. `docker-compose up -d` to run docker compose as daemon | ||
3. Open http://localhost:10000 to access the webmin console | ||
|
||
Use `docker exec -it webmin_master /bin/bash` to get a SSH console. | ||
|
||
Docker will not be running by default, use `dockerd` to run it, Ctrl+C to stop. | ||
|
||
To setup the test DinD container |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,16 @@ | ||
index_title=Docker container management | ||
index_containers_title=Containers | ||
index_stats_title=Stats | ||
|
||
command_err=Command could not be run | ||
tab_info=Docker Info | ||
tab_containers=Containers | ||
|
||
command_err=Command could not be run | ||
|
||
label_name=Name | ||
label_label=Label | ||
label_runningfor=Running for | ||
label_cpu=CPU | ||
label_mem=MEM | ||
|
||
command_start=Start | ||
command_stop=Stop | ||
command_restart=Restart |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
FROM ubuntu:18.04 | ||
|
||
LABEL maintainer="Bibin Wilson <[email protected]>" | ||
|
||
RUN apt-get update && \ | ||
apt-get -qy full-upgrade && \ | ||
apt-get install -qy curl && \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
version: '3.5' | ||
name: 'webmin' | ||
services: | ||
webmin: | ||
container_name: internal_test | ||
privileged: true | ||
build: | ||
context: ./ |