From 93a567f051124deaccb95a21e4f38f02e5ee4ab5 Mon Sep 17 00:00:00 2001 From: hhf Date: Fri, 6 Dec 2024 11:48:57 +0530 Subject: [PATCH] Update README.md --- README.md | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 5fd34c2..494f828 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,31 @@ # proxmox-docker-import -A bash script that will automate the process of importing a Docker container into Proxmox/LXC. \ No newline at end of file +A bash script that will automate the process of importing a Docker container into Proxmox/LXC. + +The script includes: + +1. Command line options to customize: + - Docker image (-i) + - Container name (-n) + - Output template name (-t) + +2. All the necessary steps: + - Installing required packages + - Creating LXC container from Docker image + - Configuring networking + - Removing extra TTYs + - Setting up network interfaces + - Adding required packages + - Configuring services + - Creating the final template + +To use the script: + +1. Save it to a file (e.g., `proxmox-docker-import.sh`) +2. Make it executable: `chmod +x proxmox-docker-import.sh` +3. Run it as root: `sudo ./proxmox-docker-import.sh` + +You can also customize the process using options: +```bash +sudo ./proxmox-docker-import.sh -i ubuntu:20.04 -n mycontainer -t ubuntu-20.04-docker_$(date +%Y%m%d)_amd64.tar.xz +``` \ No newline at end of file