1docker rm -f dragonos-build || echo "No existed container" 2p=`pwd` 3cpu_count=$(cat /proc/cpuinfo |grep "processor"|wc -l) 4docker run --rm --privileged=true --cap-add SYS_ADMIN --cap-add MKNOD -v $p:/data -v /dev:/dev -v dragonos-build-cargo:/root/.cargo/registry --name dragonos-build -i dragonos/dragonos-dev:v1.1.0-beta3 bash << EOF 5source ~/.cargo/env 6cd /data 7# Change rust src 8bash tools/change_rust_src.sh 9make all -j $cpu_count && make write_diskimage 10EOF