mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2025-02-24 13:30:02 +08:00
Update build.sh
This commit is contained in:
parent
9d3d760b62
commit
545a648cc0
6
build.sh
6
build.sh
@ -1,3 +1,5 @@
|
||||
docker build --tag dsm .
|
||||
docker run --rm -it --name dsm --device=/dev/kvm:/dev/kvm --device=/dev/fuse:/dev/fuse --device=/dev/net/tun:/dev/net/tun --cap-add NET_ADMIN --cap-add SYS_ADMIN -p 80:5000 -p 443:5001 -p 5000:5000 -p 5001:5001 -v ${PWD}/img:/storage docker.io/library/dsm
|
||||
set -e
|
||||
|
||||
docker build --tag dsm .
|
||||
docker images dsm:latest --format "{{.Repository}}:{{.Tag}} -> {{.Size}}"
|
||||
docker run --rm -it --name dsm --privileged --device=/dev/kvm:/dev/kvm --device=/dev/fuse:/dev/fuse --device=/dev/net/tun:/dev/net/tun --cap-add NET_ADMIN -p 80:5000 -p 443:5001 -p 5000:5000 -p 5001:5001 -v ${PWD}/img:/storage docker.io/library/dsm
|
||||
|
Loading…
x
Reference in New Issue
Block a user