Skip to content

Commit

Permalink
!2336 open run container with dev volume testcase
Browse files Browse the repository at this point in the history
From: @zh_xiaoyu 
Reviewed-by: @xuxuepeng 
Signed-off-by: @xuxuepeng
  • Loading branch information
openeuler-ci-bot authored and gitee-org committed Feb 1, 2024
2 parents 35d7d9e + 44d15a7 commit 534c4a2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions CI/test_cases/container_cases/bind_special_dir.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,9 @@ function test_bind_special_dir()
# when create container in container, runc not support to mount /dev
# adapt fedora base image, we just remove rshared option of sys dir
if [ $runtime == "runc" ]; then
c_id=`isula run -itd -v -itd --runtime=$runtime -v /sys/fs:/sys/fs:rw -v /proc:/proc -v /dev/pts:/dev/pts:rw busybox sh`
c_id=`isula run -itd --runtime=$runtime -v /sys/fs:/sys/fs:rw -v /proc:/proc -v /dev/pts:/dev/pts:rw busybox sh`
else
# lxc 5.X cannot support mount /dev directory
c_id=`isula run --runtime=$runtime -itd -v -itd -v /sys/fs:/sys/fs:rw -v /proc:/proc busybox sh`
c_id=`isula run --runtime=$runtime -itd -v /sys/fs:/sys/fs:rw -v /proc:/proc -v /dev:/dev:ro -v /dev/pts:/dev/pts:rw busybox sh`
fi
[[ $? -ne 0 ]] && msg_err "${FUNCNAME[0]}:${LINENO} - failed to run container with image: ${image}" && ((ret++))

Expand Down

0 comments on commit 534c4a2

Please sign in to comment.