Comments (4)
优化获取 apphub 容器 volume 的方法:确保容器已经启动后再获取
from websoft9.
function get_volume_path() {
local container_name="\$1"
local volume_name="\$2"
local retries=0
local max_retries=5
local mounts
while [ $retries -lt $max_retries ]; do
mounts=$(docker inspect -f '{{ json .Mounts }}' "$container_name" | jq -r ".[] | select(.Name == \"$volume_name\") | .Source")
if [[ "$mounts" == *"/"* ]]; then
echo "$mounts"
return 0
fi
((retries++))
sleep 1
done
echo "Cannot get volume path"
exit 1
}
# 使用这个函数
get_volume_path "container_name" "volume_name"
from websoft9.
针对初次安装 和升级都经过了测试,端口能正常监控并修改。 是手动修改,目前没有测试cockpit升级自动修改的cockpit配置文件的
from websoft9.
sovled
from websoft9.
Related Issues (20)
- can not install docker by install.sh in the china's vm HOT 4
- websoft9 service can not send credentials to Nginx or portainer reset HOT 1
- How to create app with RDS in Cloud?
- help wanted at Websoft9 console HOT 11
- Cockpit 多语言bug HOT 1
- Text description optimization HOT 2
- websoft9-proxy container delete, cannot work HOT 4
- websoft9 proxy: 80->9000 HOT 1
- Websoft9 console translation optimization
- Websoft9 优化与升级 HOT 3
- cannot access background for [prestashop]
- Terraform install for cloud provider
- Nginx how to dynamically apply proxy HOT 1
- Internship plan for [Shi min] HOT 4
- websoft9-apphub service logs unfriendly HOT 4
- base_url optimize
- some format error of Tomee
- cannot install docker on AmazonLinux2023 HOT 2
- cannot install cockpit on AmazonLinux2023 HOT 4
- cockpit version is old at some ubuntu22.04 distribution HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from websoft9.