Xiao Bian Note: Double 11 to buy half of the sun lost, # # Sun single contest hot strikes, smashed hands have opened a box! IPhoneX etiquette waiting for you to win, submissions that get extra 100 gold coins, as well as original innovators exclusive rewards, App can light submission, details poke here.
The beginning of the original article mentioned the famine online version of the image in the Docker Docker. Originally thought that there would not be too much attention, I did not expect that there was actually a small partner who was really interested. Today I wrote down the whole process and provided it. To need friends.
â–² By the way, I would like to praise Aunt Zhang, who can actually insert the Steam link, although the picture does not show up.
First of all, briefly introduce Docker:
Docker is an open source software project that automates the work of deploying applications under software containers to provide an additional software abstraction layer on the Linux operating system and an automatic management mechanism for operating system layer virtualization. [1]. Docker utilizes resource partitioning mechanisms in the Linux kernel, such as cgroups, and the Linux kernel name space to create stand-alone software containers. This can operate under a single Linux entity, avoiding the extra burden of booting a virtual machine [2]. The Linux kernel's support for namespaces completely isolates the view of applications in the work environment, including the process tree, network, user ID, and mounted file systems, while the core cgroups provide resource isolation, including CPU, memory, block I/O, and The internet. Since the 0.9 release, Dockers has used abstract virtualisation via libvirt's LXC and systemd - nspawn interfaces, and has started to include the libcontainer library as its own way of starting to directly use the virtualized facilities provided by the Linux kernel. - From Wikipedia
Talking about the human version: Docker actually virtualizes the applications that it needs to use through virtualization technology. Because of its technical advantages, it can encapsulate files, networks, and processes.
Docker's Docker is further simplified, adding a graphical user interface for Docker, this time through the demonstration to build a famine connection server through Synology, to demonstrate the basic operation posture of the Docker suite in Synology.
Before you really start to explain, you should understand the disadvantages of using a home group to build a famine server:
1, home broadband upload bandwidth is limited, in accordance with the daily speed results, I used 100M telecommunications broadband, upload bandwidth is about 15M or so, according to the data of the network search, famine server each player to join about the need to consume 50KB upload bandwidth, It should be roughly enough, but I did not conduct detailed tests.
2, memory consumption, in general, the famine server over time, the map of various types of buildings and random events appear to occupy the memory will gradually increase, about the need to use 1.2G of memory, the overall memory of my DS716 + II For 2G, it can be said that it is a stretch, and we look forward to the results of further testing.
3. According to my pre-construction scenario, the port of my intranet server should be exposed to the external network to be successfully connected. However, this step was not actually used and the test was successful. I cannot confirm that it is because I am Tested on the intranet, or because the Kray server relayed the data. Please test it yourself.
OK, the following is officially started. First, open the Docker app: â–¼
Then, search in the registry: Starve, we do not have to hesitate to choose the first image that is most liked, do not hurry to download at this time, let's read the instructions: â–¼
Click the small arrow in the upper right corner of the image name to go to the instructions page: â–¼
â–² At this point, you can find the construction instructions in the middle of the page. You can see the file path and the network port section here. Because Docker uses virtualization technology, once you start running, you cannot directly modify the files in Docker, so you need to use Docker. We need to configure the path to map to the group of Fai folder for us to modify, in this image is Docker / Data path.
Well, after understanding this section, we proceeded to proceed.
Double-click on the download, select the latest tab and click OK. Well, due to the reason of the large LAN, it is very likely that the download will fail. It is recommended to try two more times and it will always succeed. The image size is approximately 800M. â–¼
Waiting for the download to complete, the notification center will pop up a prompt, select the just downloaded image in the left image column, click "Start" â–¼
Already become? Naturally not so simple. This will come to the guide page:â–¼
First of all, in order to ensure the normal operation of other services of Synology, we need to properly limit the famine service and limit the memory to 1200M.
Then click Advanced Settings:
First check the application automatic restart feature, of course, in order to facilitate access control, you can also check to create a desktop shortcut. â–¼
The second cloth, switch to the volume tab, here is the process of mapping the Docker internal file to the Synology file path we just mentioned above, click on the "Add folder" button here, select the left side of the lower field The folder path of the group is Hui, and the path in the docker folder is on the right, resulting in a mapping relationship. â–¼
Click on the left file path, the system will prompt you to make a selection, I chose to create a new DST folder in the Docker folder to distinguish.
Right path We fill in the path seen in the Docker instructions above: /data/DoNotStarveTogether/â–¼
Continue, and then switch to the port settings tab, here is to map the network used by Docker and Synology to use the network for management, the local port in this page is defaulted to "automatic", if left alone, the application starts each time All ports will be randomly assigned, it is recommended to be fixed, in the case of not occupying other ports, you can specify the same port as Docker; game applications generally use the UDP protocol, do not modify here. â–¼
OK, now it's basically done, click the Apply button and go back to the image interface, you can see that the image has started running, but the work hasn't finished yet. â–¼
Right-click on the running image, select Details, switch to the Log tab, check the operation: â–¼ Under normal circumstances, the initial running of the image will be updated first, waiting for the update to complete. â–¼
After the update is complete, click the Refresh button in the lower right corner of the log page. You can see INVALID_TOKEN in the log. This is because the Steam online service fails to authenticate the server you built. At this point, the famine line we are familiar with is finally ready to appear. ! â–¼
Open the famine online version. After the login is successful, click the "Account" button at the bottom right of the screen to log in to your Cray account. â–¼
Pull the page to the bottom end, click the orange "Generate Server Token" button, copy and then copy the string of tokens for safekeeping. Now you can temporarily exit the client. â–¼ At this point we need to continue to configure the server's other files, in accordance with the official Cray instructions, we need to configure our folder as follows: â–¼ Please pay attention to the folder order. Since the server is already started at this time, some folders and files will be gradually generated in the mapped folder. You don't need to worry about it. You only need to create the files mentioned in the above figure one by one to ensure the correct directory. . As mentioned earlier, all these files and folders need to be created in the DST path. My path structure is as follows for reference: â–¼
After all the new creations are completed, double-click to open the "cluster_token.txt" file, paste the Token obtained from the famine client above and save it. In addition, we also need to modify the cluster.ini file to specify the configuration of the server. The standard configuration file is as follows: â–¼
[GAMEPLAY]
Game_mode = survival (Endless Endless Mode; Wildern Wilderness Mode; Survival Survival Mode)
Max_players = 6 (maximum number of players, 1-64 any number)
Pvp = false (whether to start PVP)
Pause_when_empty = true (whether or not the world will automatically pause)
Enable_snapshots = true (whether to start the screenshot function)
Enable_autosaver = true (automatic saving is enabled)
[NETWORK]
Cluster_description = Dream World (game room description)
Cluster_name = Deam In 001 (game room name)
Cluster_intention = cooperative (game mode)
Cluster_password = (game password)
[MISC]
Console_enabled = true (console is enabled)
[SHARD]
Shard_enabled = true (whether to start the underground world)
Bind_ip = 127.0.0.1 (fixed IP address, not recommended for modification)
Master_ip = 127.0.0.1 (IP in the world)
Master_port = 10999 (overground world port, recommended to be the same as port above)
Cluster_key = supersecretkey (ground world connects to the world key on the ground)
Please note: All the contents in the above configuration file () must be deleted, otherwise it will affect the normal startup of the server!
According to their own needs to modify directly copied to the cluster.ini file and save it.
At this point, restart the Docker image once. Then look at the changes in the log: â–¼
You can see that the startup has been prompted at this time. â–¼
Well, I can't wait to get it done. Let's start the famine and give it a try. â–¼
Wilson said hello to everyone! I wish you all a happy life!
Universal Back Sticker, Back Film, TPU Back Sticker, Back Skin Sticker, PVC Back Sticker, Back Skin,Custom Phone Sticke,Custom Phone Skin,Phone Back Sticker
Shenzhen Jianjiantong Technology Co., Ltd. , https://www.mct-sz.com