Closed RafaelMKA closed 6 months ago
Do you own the game on Steam or on GoG?
The correct command to launch it once the container has been built is:
For GoG:
docker compose -f docker-compose-gog.yml up
For Steam:
docker compose -f docker-compose-steam.yml up
But you should follow the instructions on the main page about how to setup the game files for GoG & Steam as they each have a different approach. The game files need to either be downloaded via your Steam account, or brought in with the GoG installer. Take a look so that you can set things up and issue a build command before you try to bring up the container. Things have changed a lot in the past week so there's a good chance the video you followed was for a previous version which is no longer applicable.
And for Windows, ideally you would have Docker Desktop installed and you would be running these commands in a command prompt.
I do have Stardew Valley on Steam. I was following the instructions on the main page so I put in my login information (into docker-compose-steam.yml) and put in the command for steam and it kept saying the steam username, password, and guard variables are not set.
I do have Docker Desktop and have currently been using the terminal in Visual Studio Code, is there a command prompt in Docker Desktop?
Docker Desktop becomes integrated with your OS when you install it, so you can simply run a Windows command prompt to issue Docker commands (Start>cmd). Once you're in the command prompt, you navigate to the folder where the docker-compose-steam.yml file resides, and from there you start issuing the required commands.
I believe the compose process is looking for environment variables when it calls for STEAM_USER, STEAM_PASS, and STEAM_GUARD. To set environment variables in Windows, you need to use the "SET" command, like so:
SET STEAM_USER=RafaleMKA
SET STEAM_PASS=password
SET STEAM_GUARD=ABC123
Immediately after entering this, especially the STEAM_GUARD, issue the build command:
docker compose -f docker-compose-steam.yml build --nocache
Note that the build command needs to be run in the same command prompt that you set the variables.
While the build process executes, it will eventually trigger a 2FA check with your Steam guard, so have your phone ready to approve it as soon as it appears.
Thanks for the help! This worked and the server is up and running, thank you!
All of this is in Windows 11 and I'm using visual studio code. I don't have any coding knowledge so everything I'm doing is based on YouTube tutorials. In the terminal I am putting:
docker run -p 5801:5800 jlesage/baseimage-gui:debian-11
This opens the container and it shows a black box (assumedly it's where Stardew is supposed to appear?) for a few seconds but then the box disappears and I'm just left with "Docker app."
Here is what the terminal looks like: