Skip to content

Commit 455a77b

Browse files
committed
Fix horizontal_fl/start_container.sh script
Signed-off-by: Kun Lai <me@imlk.top>
1 parent 582cf46 commit 455a77b

File tree

1 file changed

+3
-15
lines changed

1 file changed

+3
-15
lines changed

cczoo/horizontal_fl/start_container.sh

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -31,20 +31,6 @@ fi
3131
tag=latest
3232

3333
if [ "$3" == "ubuntu" ] || [ ! -n "$3" ]; then
34-
docker run -it \
35-
--restart=always \
36-
--cap-add=SYS_PTRACE \
37-
--security-opt seccomp=unconfined \
38-
--device=/dev/sgx_enclave:/dev/sgx/enclave \
39-
--device=/dev/sgx_provision:/dev/sgx/provision \
40-
--name=${name} \
41-
-v /var/run/aesmd/aesm.socket:/var/run/aesmd/aesm.socket \
42-
-v /home:/home/host-home \
43-
--net=host \
44-
--add-host=pccs.service.com:${ip_addr} \
45-
anolisos_horizontal_fl:${tag} \
46-
bash
47-
else
4834
docker run -itd \
4935
--restart=always \
5036
--cap-add=SYS_PTRACE \
@@ -72,4 +58,6 @@ docker run -it \
7258
--add-host=pccs.service.com:${ip_addr} \
7359
anolisos_horizontal_fl:${tag} \
7460
bash
75-
fi
61+
else
62+
echo "unsupported distros '$3', should be 'ubuntu' or 'anolisos'"
63+
fi

0 commit comments

Comments
 (0)