Docker setup
In this guide, we'll assume you're running Ubuntu 22.04 LTS. Because we won't be covering many distros, the guide will only use the most popular one.
Installing Docker
Open your terminal
Do a
sudo apt updateThen we must install the following prerequisites:
sudo apt install -y apt-transport-https ca-certificates curl software-properties-commonThen we need to add the GPG key from the official Docker repository to our system:
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpgThen we will add the Docker repository to our APT sources:
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/nullDo another
sudo apt updateto let the system update the packages, now including the Docker repository.Let's install Docker and docker-compose:
sudo apt-get install -y docker-ce docker-ce-cli containerd.io docker-compose-pluginAfter that's done, let's add the current user to the docker group, so we don't need to write
sudoall the time while using docker:sudo usermod -aG docker ${USER}You will need to re-log your user, for this to take effect (open and close your terminal, if you're using a headless Ubuntu server)
Creating paths for the Skyrim Together server
I like to put my stuff in /opt/ so that's what we will do for now:
Let's create the folders needed. We will need sudo privilige to create folders in
/opt/.sudo mkdir -p /opt/docker/skyrimserver/{config,Data,logs}Now let us take ownership of the folders
sudo chown -R ${USER}:${USER} /opt/docker
Starting the server using Docker
Docker is extremely simple to get up and running
We just need to run this command, and Docker will take care of the rest:
docker run -d -it --name skyrimserver -p 10578:10578/udp -v /opt/docker/skyrimserver/config:/st-server/config -v /opt/docker/skyrimserver/Data:/st-server/Data -v /opt/docker/skyrimserver/logs:/st-server/logs tiltedphoques/st-reborn-server:latestDocker will now download the latest server image, and run it afterwards.
If you want to see the logs in your terminal, you can use this command:
docker logs -tf "skyrimserver"If you would like to attach to your server console to enter commands (such as
/help), you can use this command:docker attach skyrimserverNote: to detach from the console, the default hotkey is
CTRL+P,Q. This means you hold Left-Control, then you press and release P, and then press and release Q.
Now your server is up and running.
Start and stop your docker server
To stop your
skyrimserver, simply run the following command in your console and it will stop your Skyrim Together server:docker stop skyrimserver -t 1
To start it again, simply run the following command in your console and it will start your Skyrim Together server again:
docker start skyrimserver
To restart the server, run the following command in your console and it will stop *and* start the server:
docker restart skyrimserver -t 1
I want to use Docker Compose
An up-to-date docker-compose.yml file can be found in the project repository. Run it with docker compose up -d after you create the directories.
Onwards to the next step!
Last updated
Was this helpful?