Good morning, I would like some help creating a server to play Counter-Strike 1.6.
I’m using an Ugreen DXP2800 to try and do this.
I downloaded some images in Docker, but I’m new to this area and have no programming knowledge.
I did some research online using STEAMCMD containers and some ready-made CS 1.6 containers, but it didn’t work.
I created a container and added some environment variables. The container runs, but when I check the logs, I get this message at the end:
Loading server configs
cp: cannot stat ‘/home/steam/store/cfgs/*’: Permission denied
Starting Counter Strike 1.6 Dedicated Server
Auto-restarting the server on crash
./hlds_linux: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
If anyone can help me or give me any advice, I would be very grateful.
It is just a simple permision issue but what the right permission would be I don’t know. The user that runs processes in the container must have access to the files that the app wants to read or write.
A required library is missing from the base image. If you know what base image you are using and what Linux distribution’s what repository you can use to install or search for packages, you need to find out what package will include that library. You can try packages like libstdc-dev or libstdc++ or a spcific version. If the image is debian based like debian or ubuntu, apt package manager shows what packages are available
apt-get update
apt-get search libstdc++
I tried with the latest ubuntu and this worked:
apt-get install libstdc++-16-dev
But there were multiple versions available and I have no idea which one is supported by the cs server.
So you will need to start a container from the image you are using and interactively figure out what package can be installed. Than add the package to your Dockerfile to a RUN instruction.
Questions if you need more help:
How do you start the container?
What is the base image?
Do you build your own image?
Do you have a Dockerfile?
Please, also read our formatting guide that you will need if you want to share temrinal outputs, code or logs:
The errors seem to be permission and library related. You should share the compose file you are using, that contains all the settings for running the container from an image.
You just executed the package name instead of the full command. That won’t work. But even if you manage to run the commands in that terminal, that will not be persistent and you will lose it when you recreate the containers. That is why I wrote you would need to add it to a Dockerfile.
But until you figure out which command is the right one, it is indeed good to test it in the terminal.
Thank you very much for your help, I will test the commands tomorrow.
And where do I start studying to learn about Dockerfile, containers, and the Ugos terminal?
I really appreciate the help, I only bought the NAS a month ago to use as a file server, and now I’m starting to get interested in Docker and containers.
But in general, you can always search for “XY Docs” or “XY Reference” where you can replace “XY” with anything you want to learn about.
I know nothing about Ugos. If you want to learn about a NAS or other software, I recommend looking for their support forum or community. Here we are happy to help with Docker-related questions and sometimes you can be lucky and someone knows about a specific platform as well. But that is not the focus on the Docker Community Forum.