Todo: make a Logo
Dedicated Valheim Server inside a Docker Container
Project Goals
Principles |
---|
KISS Keep it simple, stupid |
Test First |
My goal is to make a docker image which everyone can run.
Even someone without any network and docker knowledge should be able to runs this. The Image should als be well tested and just run always (this is a little bit in > conflict with the unkown valheim server code)
To get a local copy up and running follow these simple steps.
You need to install docker on your device. Examples below:
For more information, please refer to the
Get Docker
Geting started
- Pull docker image
docker pull cyb3r/valheim-server
- Run the docker container
docker run --name my-custom-valheim-server -d -p 2456-2458:2456-2458/udp cyb3r/valheim-server
docker run --name my-custom-valheim-server -d -p 2456-2458:2456-2458/udp cyb3r/valheim-server -name "A real Name" -port "2456" -world "Dockerhein" -password "docker"
- Clone the ValheimServer
git clone https://github.com/CyberT3C/ValheimServer.git
- Build docker image locally
docker build --no-cache -t valheimserver-01 .
- start docker container locally in interactive mode
docker run -it -p 2456-2458:2456-2458/udp valheimserver-01
Examples and Screenshots will be added in the future
See the open issues for a list of proposed features (and known issues).
#this will not start the server, so u can search for files or data and check if everything is fine
docker run -it -p 2456-2458:2456-2458/udp cyb3r/valheim-server bash
# start with full command output
docker run -it -p 2456-2458:2456-2458/udp cyb3r/valheim-server -name "A real Name" -port "2456" -world "Dockerhein" -password "docker"
You can stop the container by using ctrl + c
.
run a shell (e.g. powershell, mingw) as adminstrator
docker run --rm -it -v /:/vm-root alpine:edge ls -l /vm-root/yourpath
docker volume ls
docker volume inspect b73773dc39e689cc5be0f538f3f59aa04dcc6f4eb5fcdadf70e6d632b48ee6c8
{
"CreatedAt": "2021-03-04T13:45:14Z",
"Driver": "local",
"Labels": null,
"Mountpoint": "/var/lib/docker/volumes/b73773dc39e689cc5be0f538f3f59aa04dcc6f4eb5fcdadf70e6d632b48ee6c8/_data",
"Name": "b73773dc39e689cc5be0f538f3f59aa04dcc6f4eb5fcdadf70e6d632b48ee6c8",
"Options": null,
"Scope": "local"
}
docker run --rm -it -v /:/vm-root alpine:edge ls -l /vm-root/var/lib/docker/volumes/b73773dc39e689cc5be0f538f3f59aa04dcc6f4eb5fcdadf70e6d632b48ee6c8/_data/
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the GNU General Public License v3 License. See LICENSE
for more information.
Niklas - @omnificutie