Update README.md
This commit is contained in:
parent
b26eee7584
commit
93a567f051
1 changed files with 29 additions and 1 deletions
30
README.md
30
README.md
|
@ -1,3 +1,31 @@
|
||||||
# proxmox-docker-import
|
# proxmox-docker-import
|
||||||
|
|
||||||
A bash script that will automate the process of importing a Docker container into Proxmox/LXC.
|
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
|
||||||
|
```
|
Loading…
Reference in a new issue