Gonzih / docker-csgo-server

Dockerfile for the CSGO server
MIT License
134 stars 54 forks source link

Default rcon #1

Closed HelderFSFerreira closed 7 years ago

HelderFSFerreira commented 7 years ago

How can i add an rcon password? If i access the container i don't have permitions to download an program to edit like vim or nano...

Gonzih commented 7 years ago

You can just do "echo 'rcon_password mypassword' >> $SERVER/csgo/csgo/cfg/server.cfg" when you are inside the container (using docker exec for example). Or add this line to the dockerfile. You can also create your own Dockerfile, use this image as a base FROM csgoserver and add RUN echo .... command in there or modify original Dockerfile for a server.