Raised This Month: $51 Target: $400
 12% 

How to acccess steamcmd console in docker?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
p0rk
New Member
Join Date: Mar 2023
Location: Bucharest
Old 04-07-2023 , 20:48   How to acccess steamcmd console in docker?
Reply With Quote #1

Hello awesome community,

I'm using cm2network/steamcmd docker image to create csgo servers in Linux (ubuntu) environment.

After I build the image with the required parameters, the server starts but I didn't find a way to attach to the server console and issue commands like "sm" for debugging.

I can only do that if I manualy run "docker exec -it container bash" and manualy run
/CM2Walki/CSGO/blob/master/bullseye/etc/entry.sh but that's not ok because it will try to start another server and it will have a conflict.

Any way to attach srcds_linux console?


Thank you,

Your beloved p0rk
p0rk is offline
p0rk
New Member
Join Date: Mar 2023
Location: Bucharest
Old 04-07-2023 , 21:15   Re: How to acccess steamcmd console in docker?
Reply With Quote #2

I found the solution, if someone needs it, here it is:

In docker compose csgo server add these parameters stdin_open & tty:

csgo:
image: cm2network/csgo
stdin_open: true
tty: true

After docker-compose up, use this command:

docker attach {containerName}


Now you have access to the console and you can run commands ex:

sm version


mind the p0rk
__________________
the p0rk is running with desert eagle... bam: one tap

...mind the p0rk
p0rk is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:55.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode