You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
643 B

#!/bin/bash
NETHACK_DIR=/home/admin/nethack-server/savedata
sudo docker run \
-d \
-p 23:23 \
-v $NETHACK_DIR/var:/opt/nethack/nethack.alt.org/nh343/var:rw \
-v $NETHACK_DIR/dgldir:/opt/nethack/nethack.alt.org/dgldir:rw \
--name=nethack \
nethack-server
#--user 5:60 \
#-v $NETHACK_DIR/var:/opt/nethack/nethack.alt.org/nh343/var:rw \
#-v $NETHACK_DIR/dgldir:/opt/nethack/nethack.alt.org/dgldir:rw \
#-v /tmp/nethack:/tmp/nethack:rw \
#--mount type=bind,source=$NETHACK_DIR/dgldir,target=/opt/nethack/nethack.alt.org/dgldir \
#--mount type=bind,source=$NETHACK_DIR/var,target=/opt/nethack/nethack.alt.org/nh343/var \