mirror of
https://github.com/netbootxyz/netboot.xyz.git
synced 2026-04-25 23:25:54 +03:00
[GH-ISSUE #1409] Docker compose on docker hub not requesting all ports #1976
Labels
No labels
Hacktoberfest
Hacktoberfest
bootloader
bsd
bug
confirmed
documentation
duplicate
enhancement
enhancement
enhancement
eol
experimental-merged
freebsd
help wanted
invalid
investigate
ipxe
linux
live-os
memdisk
menu
no-issue-activity
no-issue-activity
pull-request
released
todo
upstream
windows
windows
work-in-progress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/netboot.xyz#1976
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @geekmoto13 on GitHub (Feb 3, 2024).
Original GitHub issue: https://github.com/netbootxyz/netboot.xyz/issues/1409
Describe the bug
Ports 69 and 8080 are not being exposed when run on qnap devices
To Reproduce
Steps to reproduce the behavior:
Expected behavior
All ports requested for container do not show up with default config.
Screenshots
Additional context
This may also be a qnap specific problem but there is no way to upload files to the server for things like windows pxe
@geekmoto13 commented on GitHub (Feb 4, 2024):
have confirmed this behavior also happens on self hosted docker instances and the ports have to manually specified
@antonym commented on GitHub (Feb 4, 2024):
The services in the container are set to 80 (http), 3000 (webapp), and 69/udp (tftp). You'll need to set those in your configuration and make sure there isn't anything using those existing ports on your qnap. If you need to upload files, you would copy them to the assets folder you have defined or download them via the webapp.
@geekmoto13 commented on GitHub (Feb 4, 2024):
@

thats the thing, when the qnap and self hosted docker instances pull the compose, 3000 is the only one set, 8080 and 69 dont show up under the container config and have to be manually added in a NAT config for networking.
@antonym commented on GitHub (Feb 4, 2024):
I'm guessing it's relying on the EXPOSE settings in the Dockerfile and currently I only have 3000 set. I'll enable EXPOSE for 80 and 69/udp as they seem to mainly just document which ports can be opened to docker but they can still overridden if needed.
https://docs.docker.com/engine/reference/builder/#expose
@geekmoto13 commented on GitHub (Feb 4, 2024):
sorry if my initial post didnt indicate that, I should have provided screenshots on the initial post. thats my bad.
@antonym commented on GitHub (Feb 4, 2024):
No worries, screenshot helps for sure, so many implementations out there. Give the latest container a try once it deploys out and let me know if the behavior is working better.
@geekmoto13 commented on GitHub (Feb 4, 2024):
yeah the qnap device seems to have pulled the new config and has all the ports listed at least, qnap has a strange docker implementation, but it now seems to work as intended and is responding to portqry
this has now been fixed
@antonym commented on GitHub (Feb 4, 2024):
Sweet, I see them listed in docker inspect:
@geekmoto13 commented on GitHub (Feb 4, 2024):
Also what I meant with not being able to get stuff on
To the server is that the container is so isolated (likely qnap specific logic) that the container isn’t allowed to access any files on the host system to allow the user to pull in files. I have gotten a container setup on a proxmox box after my qnap nas nearly took down my network during a reboot. Might be an idea to implement a built in ftp client to allow file management for devices that isolate containers but will need to do some testing with proxmox to see how far that extends if it’s a docker thing or just qnap specific