[GH-ISSUE #6] Add Container Creating/Removing + Testing #4

Closed
opened 2026-03-03 14:44:35 +03:00 by kerem · 1 comment
Owner

Originally created by @luthermonson on GitHub (Aug 4, 2021).
Original GitHub issue: https://github.com/luthermonson/go-proxmox/issues/6

Add endpoints to create and delete containers and add tests to create, start/stop and remove a container. maybe for this we use nginx base container and check for 200OK + welcome to nginx text. check out docker run -d --name nginx -p 8081:80 --restart=always nginx and what it boots on localhost:8081 and just test for that

Originally created by @luthermonson on GitHub (Aug 4, 2021). Original GitHub issue: https://github.com/luthermonson/go-proxmox/issues/6 Add endpoints to create and delete containers and add tests to create, start/stop and remove a container. maybe for this we use nginx base container and check for 200OK + welcome to nginx text. check out `docker run -d --name nginx -p 8081:80 --restart=always nginx` and what it boots on localhost:8081 and just test for that
kerem closed this issue 2026-03-03 14:44:35 +03:00
Author
Owner

@luthermonson commented on GitHub (Aug 5, 2021):

ok i figured this out a bit more and read some more documentation. the basics for the test that'll make this easy will be to boot the alpine container and ssh into it and do an ls or something. to do that we'll need to figure out how to do a pveam download which will probably require us to figure out the termproxy api

im still trying to figure out the best approach to do this in go but it looks like you hit the termproxy api and get a ticket and use that to login to the proxy which tunnels you to the node or the container. you can termproxy to the node, download the container package, start the container, termproxy to the container and do the ls

<!-- gh-comment-id:893188233 --> @luthermonson commented on GitHub (Aug 5, 2021): ok i figured this out a bit more and read some more documentation. the basics for the test that'll make this easy will be to boot the alpine container and ssh into it and do an ls or something. to do that we'll need to figure out how to do a `pveam download` which will probably require us to figure out the [termproxy api](https://pve.proxmox.com/pve-docs/api-viewer/index.html#/nodes/{node}/termproxy) im still trying to figure out the best approach to do this in go but it looks like you hit the termproxy api and get a ticket and use that to login to the proxy which tunnels you to the node or the container. you can termproxy to the node, download the container package, start the container, termproxy to the container and do the l`s`
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/go-proxmox#4
No description provided.