Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

conflict container name #108

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -152,19 +152,22 @@ if [ "${COMMAND}" = "start" ]; then
# Start Docker container
if [ "${IMAGE_TYPE}" = "standalone" ]; then
IMG_NAME=$(echo "${PREFIX}-${ASIC_TYPE}-${TARGET}" | tr '[:upper:]' '[:lower:]')
docker rm -f ${IMG_NAME}-run
docker run --name ${IMG_NAME}-run \
-v $(pwd):/sai-challenger \
--cap-add=NET_ADMIN \
${OPTS} \
--device /dev/net/tun:/dev/net/tun \
-d ${IMG_NAME}
elif [ "${IMAGE_TYPE}" = "server" ]; then
docker rm -f sc-server-${ASIC_TYPE}-${TARGET}-run
docker run --name sc-server-${ASIC_TYPE}-${TARGET}-run \
--cap-add=NET_ADMIN \
${OPTS} \
--device /dev/net/tun:/dev/net/tun \
-d sc-server-${ASIC_TYPE}-${TARGET}
else
docker rm -f ${PREFIX}-client-run
docker run --name ${PREFIX}-client-run \
-v $(pwd):/sai-challenger \
--cap-add=NET_ADMIN \
Expand Down