更新软件结构
This commit is contained in:
parent
f6896bdb28
commit
b460838426
@ -11,9 +11,9 @@ case $pick in
|
|||||||
docker ps --format "{{.Names}}"
|
docker ps --format "{{.Names}}"
|
||||||
;;
|
;;
|
||||||
'2')
|
'2')
|
||||||
declare -a deocker_arr=($(docker ps --format "{{.Names}}" | cut -d ' ' -f1))
|
declare -a deocker_arr=($(docker ps --format "{{.Names}}"))
|
||||||
declare deocker_number=0
|
declare deocker_number=0
|
||||||
for i in "${!deocker_arr[@]}" ; do
|
for i in "${!docker_arr[@]}" ; do
|
||||||
deocker_number=$(( deocker_number+1 ))
|
deocker_number=$(( deocker_number+1 ))
|
||||||
echo "${deocker_number}.${i}"
|
echo "${deocker_number}.${i}"
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user