Docker usage supports giving a host port, when creating a container, in the format addr
:
port
, where addr
refers to an interface.
For example, a container may bind to port 8000 on the loopback interface, rather than to all interfaces, if the port is given as 127.0.0.1:8000
.
Unfortunately, the usage is not supported by the aaPanel Docker extension.
Submitting container options with a port in the multi-part format shows the following error message displayed as a popup pane in the browser page:
ValueError: invalid literal for int() with base 10: '127.0.0.1:8000'
Below, the main message, the following stack trace is shown:
Traceback (most recent call last):
File "/www/server/panel/BTPanel/__init__.py", line 1812, in publicObject
return run_exec().run(toObject, defs, get)
File "/www/server/panel/BTPanel/__init__.py", line 1764, in run
result = getattr(toObject,get.action)(get)
File "class/panelController.py", line 81, in model
result = PluginLoader.module_run(module_name,def_name,pdata)
File "/www/server/panel/class/projectModel/dockerModel.py", line 52, in model
OO000OOOO000OOO0O =OOO0O000O0OOOOO0O (OO0O0O000O00O00O0 )#line:87
File "/www/server/panel/class/projectModel/bt_docker/dk_container.py", line 51, in run
if dp.check_socket(args.ports[i]):
File "class/projectModel/bt_docker/dk_public.py", line 129, in check_socket
O0O0OO00OOOO000O0 =("127.0.0.1",int (O0000O0O000O0O000 ))#line:144
ValueError: invalid literal for int() with base 10: '127.0.0.1:8000'