Skip to content

docker escape code doesn't work properly #45

Answered by JamesIves
cs-deathmatch asked this question in Q&A
Discussion options

You must be logged in to vote

Ah gotcha. I don't think this is a problem with the container directly, just how the commands are being used. The following worked for me using the docker run command in the README (I updated this to add the -ti flag), and then hitting Control + P, Control + Q to exit the attached process without terminating the container.

docker run -d -ti \
  --name hlds \
  -v "$(pwd)/config:/temp/config" \
  -v "$(pwd)/mods:/temp/mods" \
  -p 27015:27015/udp \
  -p 27015:27015 \
  -p 26900:26900/udp \
  -e GAME=${GAME} \
  jives/hlds:valve  \
  "+log on +rcon_password changeme +maxplayers 12 +map crossfire"

Results:

root@docker2503onubuntu2204-s-1vcpu-1gb-nyc1-01:~/hlds-docker# docker attach 9eccb6926…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by JamesIves
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #35 on October 01, 2024 00:49.