docker build
docker build --force-rm -t $image_name:$v_d . --network host --no-cache
--force-rm 默认为false,删除中间层的container
--force-rm=true|false
Always remove intermediate containers, even after unsuccessful builds. The default is false.
--network host
--network=bridge
Set the networking mode for the RUN instructions during build. Supported standard
values are: bridge, host, none and container:<name|id>. Any other value
is taken as a custom network's name or ID which this container should connect to.
--no-cache默认为false,使用本机已经存在的images cache
--no-cache=true|false
Do not use cache when building the image. The default is false.