Docker Management UI is a web-based application that allows users to create shortcuts for Docker containers. Users can easily add buttons with customizable names, IP addresses of the Docker containers, and optional images. Each button provides information about the container's uptime and current state.
Docker Management UI provides a user-friendly interface for managing Docker containers. It simplifies the process of accessing and monitoring containers by creating buttons that represent specific containers. Users can add, edit, and remove these buttons easily, providing a convenient way to interact with Docker containers.
- Create buttons with custom names, IP addresses, and optional images.
- Display container uptime and current state on the buttons.
- Edit existing buttons to update container information.
- Remove buttons when they are no longer needed.
- HTML and CSS for the frontend user interface.
- Node.js and Express for the backend server.
- MongoDB for storing container information.
- Dockerode library for interacting with Docker from Node.js.
- Clone the repository:
git clone [<repository-url>](https://github.com/Luispinto26/docker_management_ui.git)
cd docker-management-ui
- Install dependencies:
npm install
- Set up environment variables:
-
Create a
.env
file in the root directory. -
Define the following variables in the
.env
file:MONGODB_URI=your-mongodb-connection-string
Replace
your-mongodb-connection-string
with the connection string for your MongoDB database.
- Start the backend server:
npm start
- Open the frontend in a web browser:
- Navigate to
http://localhost:3000
to access the Docker Management UI.
-
Open the Docker Management UI in a web browser.
-
To add a new button:
- Click on the "Add Button" option.
- Enter the button name, IP address of the Docker container, and optionally provide an image URL.
- Click "Save" to add the button.
-
The new button will appear on the UI, displaying the container's uptime and current state.
-
To edit a button:
- Click on the button you want to edit.
- Update the container information.
- Click "Save" to apply the changes.
- To remove a button:
- Click on the button you want to remove.
- Click "Remove" to delete the button.
See this issue.
Docker best practise to Control and configure Docker with systemd.
-
Create
daemon.json
file in/etc/docker
:{"hosts": ["tcp://0.0.0.0:2375", "unix:///var/run/docker.sock"]}
-
Add
/etc/systemd/system/docker.service.d/override.conf
[Service] ExecStart= ExecStart=/usr/bin/dockerd
-
Reload the systemd daemon:
systemctl daemon-reload
-
Restart docker:
systemctl restart docker.service
Contributions to Docker Management UI are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.
This project is licensed under the MIT License.