cyberbolt / baota Goto Github PK
View Code? Open in Web Editor NEW宝塔面板,生产环境下优雅地使用 Docker 运行。支持 Linux,macOS,Windows,架构 x86-64 或 ARM 64
License: MIT License
宝塔面板,生产环境下优雅地使用 Docker 运行。支持 Linux,macOS,Windows,架构 x86-64 或 ARM 64
License: MIT License
访问端口没问题 是 8888,但是网站端口默认是80,跟Openwrt一样,怎么避免冲突?
命令:
docker run -itd -v /www:/www --net=host --restart=always
--name baota2 cyberbolt/baota:latest
-p 1180:80 -port 28888 -username cyberbolt -password abc123456
结果:
usage: script.py [-h] [-port PORT] [-username USERNAME] [-password PASSWORD]
script.py: error: ambiguous option: -p could match -port, -password
尝试过把 -p 换成 -port,但好像没有用。-port只是宝塔面板的端口
不能把端口映射出去,就无法在外面访问宝塔面板里安装的网站了
正在设置面板端口
Traceback (most recent call last):
File "script.py", line 95, in <module>
main()
File "script.py", line 79, in main
bt_init(data['port'], data['username'], data['password'])
File "script.py", line 31, in bt_init
child.expect('.*:'.encode('utf-8'))
File "/usr/local/lib/python3.7/dist-packages/pexpect/spawnbase.py", line 344, in expect
timeout, searchwindowsize, async_)
File "/usr/local/lib/python3.7/dist-packages/pexpect/spawnbase.py", line 372, in expect_list
return exp.expect_loop(timeout)
File "/usr/local/lib/python3.7/dist-packages/pexpect/expect.py", line 179, in expect_loop
return self.eof(e)
File "/usr/local/lib/python3.7/dist-packages/pexpect/expect.py", line 122, in eof
raise exc
pexpect.exceptions.EOF: End Of File (EOF). Exception style platform.
<pexpect.pty_spawn.spawn object at 0x7fa568ec88>
command: /usr/bin/bt
args: ['/usr/bin/bt']
buffer (last 100 chars): b''
before (last 100 chars): b't.pl: No such file or directory\r\n/usr/bin/bt: line 339: /usr/bin/python: No such file or directory\r\n'
after: <class 'pexpect.exceptions.EOF'>
match: None
match_index: None
exitstatus: None
flag_eof: True
pid: 8
child_fd: 5
closed: False
timeout: 30
delimiter: <class 'pexpect.exceptions.EOF'>
logfile: None
logfile_read: None
logfile_send: None
maxread: 2000
ignorecase: False
searchwindowsize: None
delaybeforesend: 0.05
delayafterclose: 0.1
delayafterterminate: 0.1
searcher: searcher_re:
0: re.compile(b'.*\xef\xbc\x9a')
如题,我想在树莓派上用
想用 bridge 的方式启动,但是会报错。
启动命令如下:
docker run -d --name baota -v /volume1/docker/baota/www:/www -p 8888:8888 cyberbolt/baota:latest -port 8888 -username name -password pwd123
没有root的密码
delimiter: <class 'pexpect.exceptions.EOF'>
logfile: None
logfile_read: None
logfile_send: None
maxread: 2000
ignorecase: False
searchwindowsize: None
delaybeforesend: 0.05
delayafterclose: 0.1
delayafterterminate: 0.1
searcher: searcher_re:
0: re.compile(b'.\xef\xbc\x9a')
正在设置面板端口
正在设置面板用户名
Traceback (most recent call last):
File "script.py", line 98, in
main()
File "script.py", line 82, in main
bt_init(data['port'], data['username'], data['password'])
File "script.py", line 42, in bt_init
child.expect('.:'.encode('utf-8'))
File "/usr/local/lib/python3.7/dist-packages/pexpect/spawnbase.py", line 344, in expect
timeout, searchwindowsize, async_)
File "/usr/local/lib/python3.7/dist-packages/pexpect/spawnbase.py", line 372, in expect_list
return exp.expect_loop(timeout)
File "/usr/local/lib/python3.7/dist-packages/pexpect/expect.py", line 179, in expect_loop
return self.eof(e)
File "/usr/local/lib/python3.7/dist-packages/pexpect/expect.py", line 122, in eof
raise exc
pexpect.exceptions.EOF: End Of File (EOF). Exception style platform.
<pexpect.pty_spawn.spawn object at 0x7fc792f38d30>
command: /usr/bin/bt
args: ['/usr/bin/bt']
buffer (last 100 chars): b''
before (last 100 chars): b't.pl: No such file or directory\r\n/usr/bin/bt: line 339: /usr/bin/python: No such file or directory\r\n'
after: <class 'pexpect.exceptions.EOF'>
match: None
match_index: None
exitstatus: 127
flag_eof: True
pid: 22
child_fd: 6
closed: False
timeout: 30
delimiter: <class 'pexpect.exceptions.EOF'>
logfile: None
logfile_read: None
logfile_send: None
maxread: 2000
ignorecase: False
searchwindowsize: None
delaybeforesend: 0.05
delayafterclose: 0.1
delayafterterminate: 0.1
searcher: searcher_re:
0: re.compile(b'.\xef\xbc\x9a')
正在设置面板端口
正在设置面板用户名
Traceback (most recent call last):
File "script.py", line 98, in
main()
File "script.py", line 82, in main
bt_init(data['port'], data['username'], data['password'])
File "script.py", line 42, in bt_init
child.expect('.:'.encode('utf-8'))
File "/usr/local/lib/python3.7/dist-packages/pexpect/spawnbase.py", line 344, in expect
timeout, searchwindowsize, async_)
File "/usr/local/lib/python3.7/dist-packages/pexpect/spawnbase.py", line 372, in expect_list
return exp.expect_loop(timeout)
File "/usr/local/lib/python3.7/dist-packages/pexpect/expect.py", line 179, in expect_loop
return self.eof(e)
File "/usr/local/lib/python3.7/dist-packages/pexpect/expect.py", line 122, in eof
raise exc
pexpect.exceptions.EOF: End Of File (EOF). Exception style platform.
<pexpect.pty_spawn.spawn object at 0x7f4903fc9c88>
command: /usr/bin/bt
args: ['/usr/bin/bt']
buffer (last 100 chars): b''
before (last 100 chars): b't.pl: No such file or directory\r\n/usr/bin/bt: line 339: /usr/bin/python: No such file or directory\r\n'
after: <class 'pexpect.exceptions.EOF'>
match: None
match_index: None
exitstatus: 127
flag_eof: True
pid: 22
child_fd: 6
closed: False
timeout: 30
delimiter: <class 'pexpect.exceptions.EOF'>
logfile: None
logfile_read: None
logfile_send: None
maxread: 2000
ignorecase: False
searchwindowsize: None
delaybeforesend: 0.05
delayafterclose: 0.1
delayafterterminate: 0.1
searcher: searcher_re:
0: re.compile(b'.*\xef\xbc\x9a')
命令
docker run -itd --net=host --restart=always -v /srv/dev-disk-by-uuid-89fd10bb-5192-4cfb-beac-f547395b3209/bt_data:/www \
--name bt-panel cyberbolt/baota \
-port 8888 -username homeserver -password <*****>
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.