
On Sat, Oct 10, 2020 at 04:13:15PM +0800, Xiao Shenwei wrote:
On Sat, Oct 10, 2020 at 04:10:37PM +0800, Wang Chenglong wrote:
+ +DIR=$(dirname $(realpath $0)) +cmd=( + docker run + --name init_docker
can add --rm ?
I tried to add --rm but got an error. it need to run "docker cp" on the host. if use "--rm" the container will death, "docker cp" will failed
right, you can use another way to del it
docker_rm init_docker
Ok. Thanks, Chenglong
Thanks, Shenwei
Thanks, Shenwei
+ -v $DIR/bin/:/root/bin + -v /srv/initrd/modules/:/root/modules + -e ROOT_NEW_PASSWD=$ROOT_NEW_PASSWD + -e image_name=$image_name + $image + /root/bin/creat +) + +pull_docker + +${cmd[@]} + +docker cp -a init_docker:/${image_name} ./ +echo "build finished!!!" + -- 2.23.0