๐ Docker version simplifies the important description of the mount directory | docker็ๆฌ็ฎๅๆ่ฝฝ็ฎๅฝ็้่ฆ่ฏดๆ #98
Pinned
hslr-s
announced in
Announcements
Replies: 1 comment 1 reply
-
custom็ฎๅฝๆฏๅฆไน่ฟ็งปๅฐไบๆฐ่ทฏๅพ๏ผ |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
English | ็ฎไฝไธญๆ
[English]
Starting from
v1.4.0-beta24-02-20
, simplifications have been made to the mounting directories for the Docker version. Now, only one mount command is needed when running:-v ~/xxx/sun-panel/conf:/app/conf
(Replace~/xxx/sun-panel/conf
with your actual directory). Upgrading from older versions will not be affected (on the premise of retaining thev1.3.0
and the previous version configuration file and directory); the original configuration file directory will be maintained. You can refer to your configuration file ./conf/conf.ini for specifics.๐Implementation principle
The method of rectification this time is judged by the operation environment. If for the Docker environment, some of the mounting directory will be set in the configuration file when generating configuration files
๐๏ธNew version deployment command
(Only new deployment, please continue to look down on upgrading deployment)
After simplifying, you only need to mount a
conf
directory:docker run -d --restart=always -p 3002:3002 \ -v ~/docker_data/sun-panel/conf:/app/conf \ --name sun-panel \ hslr/sun-panel:1.4.0-beta24-02-20
๐ญThe old version is upgraded to the new mounting method
If existing users wish to use the new directory mounting method (This is a testing feature, please backup your data before making any changesโ), they need to manually move the
uploads
anddatabase
directories to theconf
directory, then delete the configuration file./conf/conf.ini
. Running Sun-Panel again will automatically generate it according to the rules.For specific backup instructions, you can refer to the command I just tested:
[ไธญๆ]
ไป
v1.4.0-beta24-02-20
ๅผๅง๏ผๅฏนdocker็ๆฌ็ๆ่ฝฝ็ฎๅฝ่ฟ่กไบ็ฎๅ๏ผ่ฟ่ก็ๆถๅไป ้ไธๆกๆ่ฝฝๅฝไปค-v ~/xxx/sun-panel/conf:/app/conf
(ๆญคๅค~/xxx/sun-panel/conf
่ฏทๆ็ งไฝ ็ๅฎ้ ็ฎๅฝ่ฟ่กไฟฎๆน)ใ่็ๆฌๅ็บงไธๅๅฝฑๅ๏ผๅจไฟ็v1.3.0
ๅไนๅ็ๆฌ้ ็ฝฎๆไปถๅ็ฎๅฝ็ๅๆไธ๏ผ๏ผไปไฟๆๅๆ็้ ็ฝฎๆไปถ็ฎๅฝ๏ผๅ ทไฝๅฏไปฅๅ่ไฝ ็้ ็ฝฎๆไปถ./conf/conf.iniใ๐ๅฎ็ฐๅ็
ๆญคๆฌกๆดๆน็ๆนๅผ๏ผ้่ฟ่ฟ่ก็ฏๅขๅคๆญ๏ผๅฆๆไธบdocker็ฏๅข๏ผๅจ็ๆ้ ็ฝฎๆไปถ็ๆถๅไผๅฐ้จๅๆ่ฝฝ็็ฎๅฝๅจ้ ็ฝฎๆไปถไธญๅฐฑ่ฎพๅฎไธบไปฅไธๆฐ็ๆนๅผ
๐๏ธๆฐ็ๆฌ้จ็ฝฒๅฝไปค
๏ผไป ้ๅ จๆฐ้จ็ฝฒ๏ผๅ็บง้จ็ฝฒ่ฏท็ปง็ปญๅไธ็๏ผ
็ฎๅๅ๏ผๅช้่ฆๆ่ฝฝไธไธช
conf
็ฎๅฝ๏ผdocker run -d --restart=always -p 3002:3002 \ -v ~/docker_data/sun-panel/conf:/app/conf \ --name sun-panel \ hslr/sun-panel:1.4.0-beta24-02-20
๐ญๆง็ๆฌๅ็บงๅฐๆฐ็ๆ่ฝฝๆนๅผ
ๅฆๆ่็จๆทๆณไฝฟ็จๆฐ็็ฎๅฝๆ่ฝฝๆนๅผ๏ผๆญคไธบๆต่ฏๅ่ฝ๏ผไฟฎๆนๅ่ฏทๅคไปฝๆฐๆฎโ๏ผ๏ผ่ฏทๆๅจๅฐ
uploads
,database
็ฎๅฝ็งปๅจๅฐconf
็ฎๅฝไธ๏ผ็ถๅๅ ้ค้ ็ฝฎๆไปถ./conf/conf.ini
๏ผๅๆฌก่ฟ่กSun-Panelไผ่ชๅจๆ็ ง่งๅ็ๆๅ ทไฝๅคไปฝๅฏไปฅๅ่ๆๅๅๆต่ฏ็จ็ๅฝไปค๏ผ
Beta Was this translation helpful? Give feedback.
All reactions