How to Install a Minecraft Server Docker using QNAP Container Station
HTML-код
- Опубликовано: 11 сен 2024
- In this video, I show you how to install a Minecraft Server in a docker container using Container Station on a QNAP TS-451. First, I'll install Container Station, then set the location for the containers and images, and finally, route the networking for the container while installing it.
Please note: Container Station is available from the QTS App Center (QTS 4.2 or above) for x86-based TS-x51, TS-x51+, TS-x51A, TS-x53, TS-x53A, TS-x53B, TBS-453A, TS/TVS-x63, TVS-x70, TVS-x71, TS/SS-x79, TS/TVS-x80, TVS-x82 series, TS-1685, and TDS-16489U, and the ARM-based TS-x28, TS-x31P, TS-x31X, TS-x31+ series and TS-1635 with a minimum of 1GB RAM.
Items in this video:
QNAP TS-451 ► amzn.to/2MOjl7H
My Gear:
My Shure Microphone ► amzn.to/2P9KTC4
My Focusrite Audio Interface ► amzn.to/2oaKZOg
My Nikon Camera ► amzn.to/2P6JEUb
My Nikon Lens ► amzn.to/2MNJPX6
Thank you to all my subscribers and viewers!
Subscribe here ► www.youtube.co...
Disclaimer: As an Amazon Associate I earn from qualifying purchases.
Much obliged 🎩 to all my viewers. Like. Share. Subscribe. Enjoy.
Support links
☕ BuyMeACoffee: buymeacoff.ee/accessrandom
🐦 Twitter: twitter.com/accessrand0m
► Subscribe: ruclips.net/user/accessrandom
Can you please provide details on the Virtual Switch configuration in more detail?
Looks great! All went well but the Minecraft version is old. Is there a way to update it on the docker container?
thank you for this, has given me the confidence to give it a go
You're welcome, and thank you - best of luck!
thank you! couldn't have done it without your guidance. i did the EULA = true differently, i just added it to my Environment variables instead of the command line section
You're welcome, and thank you for the tip 🙏
How did you add it that way? I put the name as EULA and the value as -e EULA=TRUE but it still asks for it.
Oh, never mind. It's name EULA and the value is TRUE!
This install the 1.12.2 version, is there any way to update it?
great video, very well explained!
Firstly, thank you so much for this genuinely thoughtful video - the care and attention to the segments as well as a concise voice over are all of a professional grade and I took pleasure in following it. I have now set up a Minecraft server on my QNAP and it is working like a dream; furthermore, it introduced me to the necessity of the Container Station and exposed me to its other functions.
I do have a question, however: if I want to make this accessible to friends over the internet, what are the steps? If nothing else, could you point me in the right direction? I am assuming I need to open a port on my firewall among other things, and perhaps a static IP, but due to the bespoke nature of this video I am struggling to find relevant tutorials to take me to the next stage.
Thanks again, I have subscribed and look forward to more tutorials. Any help would be greatly appreciated.
Thanks for the kind words and for subscribing. That's a very good use case that I hadn't considered. You are correct that you need to port forward and use an internal static IP. Usually, you simply open the port (25565 by default) and connect to your public IP:port from Minecraft that sits outside your network. With that said, I just tried port forwarding the virtual IP on my router but I couldn't see the port open from outside my network - so something else is going on there. I'll need to dig deeper this weekend.
In the meantime, I'd recommend QNAP's NAS Community Forum as a good resource. I'll report back this weekend...
Hi again! Thank you so much for taking the time to get back to me so quickly. So armed with your positive response and some determination I hit the forums and I found my answer!
What I needed to do was use the port forwarding function on my router, which itself is a generic out-the-box home hub. Using the basic settings it allowed for me to forward port 25565 alongside the static IP which I set following your guide. I tested from an external source it and it worked... I still can't quite believe it!
I've waited years to build an online Minecraft server and the QNAP turned out to be the ticket, but I wouldn't be able to tap its immense functionality if it wasn't for people like yourself taking the time to put together tutorials like this. So many thanks again, I plan to work through your other videos next.
Super! I'm glad you were able to get yours working :)
I am going to chalk my issue up to an environmental problem in my network, but I'll keep trying this weekend. For some reason, 25565 would not open on my router even though other forwarded ports were working fine.
@@accessrandom Hi! So one year on and as you might be aware, the Kitematic container never updated past 1.12.2. Unfortunately, it caused authentication issues on my server. When I try to connect locally, or a friend tries to connect online via the Firewall, the message we receive reads:
Failed to connect to the server!
Authentication servers are down. Please try again later, sorry!
It has been this way for months, so I thought if we updated to the latest version it might help, however, the Kitematic Environment still lists a value of 1.12.2 and the "Recommended" Minecraft docker has a host of different settings which I cannot figure my way around. So our server has remained static for over 8 months with none of us able to play. I backed up the world with the intention of importing into a new docker environment but don't know where to start.
By any chance, have you built an environment on the latest version (1.14.4) or would you have any advice on which docker I should have a go at? Or even why we get authentication errors on 1.12? I've had a go but without guidance, it looks like I'm floating in the water, so any help at all would be so appreciated! Thanks so much as always!
@@HazzerJ I'm afraid I haven't really revisited this topic since I created the video. I'll need to look for a good 1.14.4 package to try. I've noticed that the Kitematic container hasn't been updated also; however, I am still able to connect to the server by selecting the 1.12.2 version when you start up Minecraft (such that the client and server versions match).
If you're still seeing your error, you may want to try setting online-mode to false in the properties file as shown at the 6:20 mark. Note that this allows anyone to join the server, so you'll want to white list the players who try to join the server.
Thank you! The guidelines work great, had to tweak it a little with the latest minecraft version but it works ok. Next step - trying to get it work with reverse proxy nginx
You're welcome, and thank you for the feedback 🙏.
how can i change the version of the server? because the one i made was 1.12.2
very useful video, thank you very much!!
You're welcome, and thank you 🙏
Firstly, thank you for this very good video. I was able to set up the Minecraft server although I did experience a problem which in the end I traced to my router. So I thought I would comment in case anyone else experienced this. If you have access control on your internet router switched to on then it is likely to block the virtual adaptor and container virtual switch. My Minecraft did not run at first and after some head scratching I finally traced it to this. After unblocking these two on my router under 'access control' it worked like a charm!
Thanks for that troubleshooting tip!
WORKING PERFECTLY !! Thank you !! BTW. how do I actually change a "world" or add mood-s?
Once when it finally works / running? (oh yeah - it's a live) :D
You're welcome, and thank you 👍
It has been a while since I've set one up, but I believe you can have only one world at a time (unless you set up two servers - each pointing to a different port on the same IP and having its own world). If I remember correctly, you can't really change a world for one server. However, you can delete or back up the worlds folder, and have the server re-create a new world. If you want more control over the world generation (say, a flat world), you can create the world on the client and copy it the folder over to the server. Again, this is from memory.
I'm afraid I've never set up mods on the server - only on the client. I'll need to defer this to my viewers. Anyone?
I did enjoy. Thank you.
Thank you for your help.
Many thanks!
You're welcome, and thank you 👍🙏
Is there a way to set up plugins and a sever icon, if so how?
thanks for the video. verry instructive.
now, I have a map/world settings from a previous server running on windows. how can I replace the files for my previous server. also, how can I update to the latest version and not run on 1.12.2
Thank you for this, very helpful. Very nice presentation
You're welcome, and thank you!
thanks
Thanks so much for the video. I have been on Synology forever. But was given a QNAP and wanted to use it for this. Everything is up and running but when I try to connect via Minecraft, it says Connection Refused within Minecraft.? Everything on the network appears correct.
No luck on TS-231P2
standard_init_linux.go:211: exec user process caused "exec format error"
is the error I get.
Thanks for the report. Unfortunately, the TS-x31P's don't support Container Station (QNAP's requirements are in the description).
@@accessrandom But I can install other containers?
OK Got it working!!! the build you need that works on the ARM64 is: itzg/minecraft-server:2021.2.0-multiarch, you also have to edit the environment settings when you create the container to add" EULA = TRUE otherwise it won't run.
Interesting - the requirements must have changed since I captured them. Thanks so much for the update 🙏
@@PaulStevensCanada how did you install the ARM64 version? Do I need to enter a command or something?
Great guide, I'm however unable to join the server from my kids iPads. Should I choose pocketmine or do you have advice to get it working for iPads?
Unfortunately, the iPad only supports the bedrock version of Minecraft, sorry. The server is Java-based.
Can you add or do you have a video of how you set up your virtual switch? I am able to set the world up, but docker keep creating a local network with IPs of 10.0.3.x instead of my local 192.168.x.x
I do have a video where I set up a virtual switch in a VM here: ruclips.net/video/73podQlom9Y/видео.html. I hope that will help.
Very cool video. Subscribed.
Much appreciated!
thanks for the video. is this supported by TS-231K? is does support container station, but RAM is only 1 GB, the server would be for 3-4 players only. going through the QNAP website it support container station, but not virtualization station not linux station.
Thank you. I have the TS-431K and it allows the download from their App Center. Like you mentioned, their website isn't as conclusive (they just say "(QTS 4.2 or above) for NAS models with minimum 1GB RAM") without explicitly listing the x31K series, but since it appears in App Center I believe it will.
What can I do when my friends can t join to Server?
Are your friends joining from outside your network (i.e., from their homes)? There could be various reasons for that, but usually it is because the port (typically 25565, but default) is not forwarded in your router.
@@accessrandom Does the server configuration shown in the video allow access to the Minecraft server only after forwarding port 25565 in router? Should I do something more in configuration?
can you do one about bedrock edition istead
I will certainly place it on my to-do list. Thanks for the suggestion 🙏
Keep it up! :)
Thanks for the words of encouragement :)
Hey cool Video is it possible to connect too this server outside of your own network i assume so but not would i do that
Yes - once you have it set up, you can treat it like any Minecraft server and forward its port in your router for external access.
im trying to install it on a TS-231P but i have no luck.
It wont start in the container. Istallation no problem - but after it wont start.
I am having the same issue on my 332x, I believe its because of the ARM architecture and most of these packages are not meant for anything other than x86(intel) based CPU's
I'm trying right now on TS-231P too, you need armv7 package for the server to start.
when I join the server I have an error message: authentification server are down but the servers are working it says on Mojang's site
Are you joining from your own internal network, or from outside? There may be a firewall issue if you are attempting to join externally. Try temporarily disabling the firewall to see if that is the case. Otherwise, you can always set the server to offline mode.
@@accessrandom I'm joining from my network Do I disable qnap's or my Pc's firewall?
@@hammerstorm1271 After disabling the PC's firewall, see if you can ping the IP address of the Minecraft server.
I'm having trouble with the Virtual Switch as the current version of QTS looks different. Any place I can go for help?
Thanks for the feedback. I'll definitely need to consider updating this video with a new one. You may want to visit forum.qnap.com - they have a lot of knowledgeable people there.
Hi, thanks for this but how do you update the Minecraft version? I saved all the files/folders from my world, downloaded the new version and restarted but now I keep getting java errors. something about needing class file version 60.0.
I do remember that selecting "latest" at the 4:03 mark would update it automatically, but I'm not sure if the current package does so. I haven't tried run the server for some time so I'm afraid I'll need to defer to others with more experience. Anyone?
Is this for running the bedrock version of the server? I have tried and tried to connect using the Windows 10 UWP version of Minecraft as well as iOS versions, and it is never able to connect to the server
I can't say for certain if it is the bedrock version, but i was able to connect using a Windows client of Minecraft. Are you joining from within the internal network, or from outside?
Thank you. Nice job on the video. I have been wondering what the practical applications of using a VM on a NAS. If I want a VM, I run a local VM. But I guess yours is a virtual server. Cool. Can't say I understand the what and why of the virtual switch as yet?
Thank you. With the VM on a 24/7 server, I can remote into it from any PC in the home. You could theoretically share yours as well, but your computer would need to be on at all times. The virtual switch is there to act as a switch for all of the VMs and containers on the server. The physical box only has two ethernet ports, but I can share a bunch of VMs with just one port.
Nice video! Do you by any chance know how to run commands from console?
Thank you. As far as I know, you'll need to SSH into QNAP in order to run terminal commands (you'll need to enable SSH connections from the QNAP first).
@@accessrandom Thanks for you answer! Also, do you know about a container that would support newest version? Thanks
Hello i am getting the below error.
Error: Unable to access jarfile minecraft_server..jar
do you happen to know what would cause this.
Thanks,
At what point in the video are your receiving this error message? Is it during the installation at about the 5:07 mark?
I'm trying to install a minecraft bedrock server using this method but I have been unsuccessful so far as I cant seem to get them running.
I have the qnap ts251 with a dual core intel celeron cpu.
Any help would be greatly appreciated, or if you have a video that would be great as well.
Also if you wanted friends to join your bedrock server from their own devices in their own homes could they use the qnap cloud address to login?
The one I used was a simple java version of the server, so I'll definitely need to look into setting up a bedrock server after some research. I'll need to defer to my viewers to see if anyone has had any experience setting one up - anyone?
@@accessrandom Be great if you could. I now have one from docker that says it's running but I'm having trouble connecting to it through any devices.
I will keep an eye out on your page in the hope you can figure it all out.
Thanks for replying.
What port do I use? I'm on the same subnet. I can ping but not connect yet.
Port 25565 is the default for Minecraft. Normally, you shouldn't need the port unless you have multiple Minecraft servers on the same IP, but it doesn't hurt to explicitly call out the port.
Doesnt seem to work in ARM qnap devices like TS431P2... any options?
Unfortunately, I didn't see the TS-431P2 in the list of units that are supported for Container Station. The TS-x31P is listed but not the TS-x31P2. Not sure why though since they are both ARM-based systems...
thank you for this video, the installation was pretty flawless. I am having an issue and getting a message that authentication servers are down, so i can't join the server i made-both local and port forwarded. however, i am able to join other public servers, so the servers aren't really down.
any idea how to fix this?
Could you check the IP address in the port forwarding settings of your router and confirm it matches the IP address for the Minecraft server? Also - are you able to join the server just on your own network (using the local IP address)?
access random yes, they match. I couldn't join using the local IP either. however I found a fix, in the server.properties file, I changed it online-mode=true to false and it worked. something is going on between the server and authentication servers from minecraft. I will eventually have to add all users to a whitelist so I don't get unwanted/unknown people joining the server.
thank you for your response!
Do i need to own original minecraft to run server like this ?
By setting online-mode to false at the 6:28 mark, you should be able to use any Java edition of Minecraft (note that there are security issues when you do that though).
Do I need a specific port to connect? I am trying connect loacally but I cant connect. The IP shows up in the router as connected and I can ping it. But using that IP inside Minecraft leaves me with the message (Searching for Server). Any ideas?
By default, Minecraft uses port 25565 but if you're on a computer within your own local network, you shouldn't need the port information - it's only when you're port forwarding in the router that you'd need it (giving access to computers outside your network). You may want to look at your firewall settings on the client Windows machine to make sure it's allowing Java in the firewall (assuming you're using Windows)...
@@accessrandom Thank you for your fast response. Yes, I am at my PC BUT I use Bluestacks to emulate android. We bought Minecraft on android and I dont want to spend more money to run something on the pc where my kids will never use it.
They basically use their mobiles to connect. Therefor I tested it also on our mobile phones but I can't connect from there. On the mobiles I need ports and yes I already tried 25565. Funny though that on the mobiles the port is by default another one...
@@AndreasKurz Interesting... if you wish, you can change the port for the server in the properties file (at the 6:19 mark). Again, that's usually for port forwarding. What you could try is to set that port to match what Minecraft uses on Android, and then port forward it. To reach the server you'd need to enter your ISP's IP address, followed by a colon, then the port. It's a roundabout way to reach the server but I can't think of another workaround.
Thanks for this. Wasn't setting up minecraft but something similar and i could not for the life of me find where the files were being stored Turns out i did not have permission to the folder under my created admin account.
You're welcome - glad the video was able to help!
Can you please make a video on how to set up a Valheim server?
Interesting - thank you for the suggestion. The TS-451 is a little underpowered but when I get a newer QNAP I will put it on my list.
hi,
Once again thanks for your wonderful work
I have one weird issue:
I did as you explain but what ever happens the container don't want to use my virtual switch which is as you on RJ45 port 2 of my nas .
Instead when minecraft start, It create my port 1 as a virtual switch port, which is not what I requested ...
Does somebody had the same issue ???
Thanks for your Help
Stéphane
Hi Stephane, do you have an existing virtual switch on the second port? If so, are you using bridge mode and setting the interface to Adapter 2 (as seen at the 4:50 mark)?
Hi MArk,
thanks your answer, I have created a virtual at the beginning of my qnap setting with the first VM,
in the meantime, I find a solution/bypass :
in the virtual switch option I dedicated POrt 1 as default gateway (which in fact didn't change the issue but it allowed me to edit the container and change the virtual switch created on port 1 by the container install for the one I created initially (port2) then I was able to remove the virtual switch created by the container (port1). FYI I installed later a plex container and it had exactly the same behaviour (it again create a virtual switch from port 1) I did as above to solve this issue. I have another one but I m working on it :)
thanks again
Stéphane
Thanks for the update. I'm glad you were able to remove the virtual switch from the first port and solve the problem. I might try a Plex container myself in the future...
3:25 Adding a Docker image
Dear Access.
First of all, thank a lot for the tutorial, I been able to set a server in my qnap 251, to run for me, my kids and their friends.
I have installed the same version you say in the video. Is there anyway, that i could set any mods to the version?.
I have set a free DNS, for them not to have to stay checking for changes in my IP. (they don't know how to). I believe that this has nothing to be with it, but i comment just in case it has.
Thanks for your time.
I'm sorry, but i haven't attempted installing mods on the server side (I've done it plenty of times on the client side where I would open up the world to others who had the same mod). Perhaps one of my viewers or subscribers can chime in - anyone?
@@accessrandom thanks for your quick answer, hope someone can help out
Hey man, I keep getting failed to log in to server restart launcher, I can also see in docker: userip:port disconnected. I can ping my server, and its set to bridged connection trough my v switch, I really don't know what to do. I tried both onlinemode: false and true
Is the computer inside the LAN, or outside? If it's outside, you'll need to port forward the IP and port in the router. If it's inside, there still could be firewall issues that may be preventing connection.
access random its all within my LAN, I also turned off my firewall/defender on my laptop to see if anything changes, it did not. I tried on my desktop pc as well to be certain its not wifi related, same, immediate login fail
@@accessrandom I can even see the server inside minecraft and its showing online 0/20
You mentioned that you tried offline mode, which should allow anyone to log in - have you tried that while turning off the firewall? If that doesn't work, I'm a bit stumped - does anyone else have any ideas yusisushi can try?
@@accessrandom Ill give it another go to be sure. I should probably mention I have the ts431p2 with ARM32v7 architechture, nonetheless I found a docker that ran the server without isssue. and as I said, I can see in the output of the container when I try to connect. so the connection is there, but it fails for some reason.
edit: Im in the first year studies of networking, and get some basic Linux classes as well, id be happy to try out other workarounds if you have suggestions :p
Can i Install mods?
I've installed mods on the client side but never on the server side so to be honest, I'm not sure. I did find a "monofraps/minecraft-modpack" on the Docker Hub website, so you may want to look into that.
@@accessrandom OK, thanks for your Help. But If you have an method, Text me please.
And how can i get a Flat World?
I believe you can do that from the server.properties by changing level-type=FLAT.
@@accessrandom And how can i get World Edit on the Server?
In the latest version
And how can i get the flatworld deeper
Sorry, I'm afraid I haven't tried installing that on the server side. I'll need to defer to others who may have more experience - anyone?
The server is open 24/24 h?
It can be running 24hrs. The QNAP itself is running all the time. But I shut down the container on weekdays so the kids can do their homework :)
Tank you
to insert plugins, there is the possibility to download a special client (bukkit, spigot)
from the video I see that the server is hosted from your computer , right ?
@@abdera7mane the server is hosted on a QNAP TS-451
real awesome video!!! has anyone an idea how to install a MOD on this Docker ? thx :)
Great video, thanks! How do I open my server for friends and family? Because if they enter the same IP followed by :25565 they can't join.
Hi Kristof, if your friends and family are outside of your local area network, then you will need to port forward your Minecraft server in your router. First, you'll need to find out what your public IP address is (myip.com can tell you what that is). Then you'll need to log into your router and forward port 25565 to the static internal IP address of your Minecraft server. All routers have different user interfaces so you'll need to look up your router's documentation. At that point, your friends and family should be able to connect to your public IP address through Minecraft. Hope that helps...
Hi access random. Thanks for your fast and extensive answer! :) This actually works! I finally got into my router and opened my server for my girlfriend and other friends. You have a great channel!
I'm glad to hear that it worked! I hope you can help me spread the word :)
@@kristofv5312 Actually you helped me also! btw. If I want to use port triggering instead of port forwarding does anyone know how to set it up?
As I know "port triggering" is "port forwarding" +
i get this message, what can the problem be?
com.mojang.authlib.GameProfile@f60bfbb[id=,name=Player,properties={},legacy=false] (/172.17.0.1:46165) lost connection: Disconnected
From the message it looks like you're unable to reach Mojang's servers. What you can try is set online-mode=false in the server.properties file.
@@accessrandom allready solved by miself, and yes that was the solution! :)
Whats that for a crappy video? I get Eyecancer watching this. Delete it or upload with better quality.