An unofficial FAQ/Tutorial #63
Replies: 6 comments 3 replies
-
Eliz wrote at Dec 26 2015 00:08:32 UTC: 👍 Thanks for the useful content :). |
Beta Was this translation helpful? Give feedback.
-
leang_97 wrote at Dec 26 2015 00:08:32 UTC: I having problem when trying to run this command docker create -it --name pp-testbu_c7sol -h docker -m 2140M --blkio-weight=500 -p 10.240.0.2:25565:25565 -p 10.240.0.2:25565:25565/udp -p 10.240.0.2:8192:8192 -p 10.240.0.2:8192:8192/udp -u 210210 -v /home/pp-testbu_c7sol/public:/home/container pufferpanel/bungeecord:latest It appears that the docker could not find "pufferpanel/bungeecord:latest" or "pufferpanel/minecraft:latest" what should I replace it with or add into my system? |
Beta Was this translation helpful? Give feedback.
-
piousminion wrote at Dec 26 2015 00:08:32 UTC: I'm not familiar with what causes that error, but unless you have a very strange system, I highly doubt that user's ID is 210210. |
Beta Was this translation helpful? Give feedback.
-
leang_97 wrote at Dec 26 2015 00:08:32 UTC: root@instance-3:~# cat /etc/passwd | grep pp-testbu_u9ydz | cut -d: -f3 1004 root@instance-3:~# docker ps -a | grep pp-testbu_u9ydz 2076a310b359 pufferpanel/minecraft:latest "/bin/bash" About an hour ago Up 16 seconds 10.240.0.2:25565->25565/udp, 10.240.0.2:25565->25565/tcp pp-testbu_u9ydz root@instance-3:~# docker ps -a | grep pp-testbu_u9ydz 2076a310b359 pufferpanel/minecraft:latest "/bin/bash" About an hour ago Exited (0) 34 seconds ago pp-testbu_u9ydz root@instance-3:~# docker ps -a | grep pp-testbu_u9ydz | cut -d" " -f1 2076a310b359 root@instance-3:~# docker rm 2076a310b359 2076a310b359 root@instance-3:~# cat /etc/passwd | grep 2076a310b359 root@instance-3:~# cat /etc/passwd | grep 2076a310b359 | cut -d: -f3 root@instance-3:~# docker create -it --name pp-testbu_u9ydz -h docker -m 2140M --blkio-weight=500 -p 10.240.0.2:25565:25565 -p 10.240.0.2:25565:25565/udp -p 10.240.0.2:8192:8192 -p 10.240.0.2:8192:8192/udp -u 1004 -v /home/ pp-testbu_u9ydz/public:/home/container pufferpanel/bungeecord:latest Unable to find image 'pp-testbu_u9ydz/public:/home/container:latest' locally repository name component must match " a-z0-9 (?:[._] a-z0-9)*" root@instance-3:~# As you can see "Unable to find image error" . I tried with "minecraft:latest" and "bungeecord:latest". Is it I mess it up with the current directory? |
Beta Was this translation helpful? Give feedback.
-
piousminion wrote at Dec 26 2015 00:08:32 UTC: leang_97 said:
You have a space between /home/ and pp-testbu_u9ydz and pufferpanel/bungeecord:latest is wrong. This "should" work:
|
Beta Was this translation helpful? Give feedback.
-
piousminion wrote at Dec 26 2015 00:08:32 UTC: Ensure that another container isn't mapping those same ports. |
Beta Was this translation helpful? Give feedback.
-
piousminion wrote at Dec 26 2015 00:08:32 UTC:
An unofficial FAQ/Tutorial:
1. SFTP connection drops upon login
This occurs due to the following reasons:
a. PAM restriction
Ensure /etc/shells contains /bin/false
# echo /bin/false >> /etc/shells
b. Incorrect permissions
openssh's chroot requirements are rather strict.
Ensure /home and individual homes are owned by root.
# chown root:root /home; chown root:root /home/*
Ensure permission modes are set correctly.
# chmod 755 /home
And do this for each :
e.g.
# chmod 755 /home/pp-aeonia_c4avw
c. The auto-deploy script failed to modify sshd_config
Edit the file: /etc/ssh/sshd_config
Scroll to the bottom and add this if it doesn't exist.
Then save and restart sshd:
For ubuntu:
# service ssh restart
For centos:
# service sshd restart
2. Mapping ports to servers fails
This assumes you've read and tried the following to no avail.
We're going to destroy and recreate the docker container manually. :)
First, let's get your docker container ID:
# docker ps -a | grep pp-XXXX | cut -d" " -f1
e.g.
# docker ps -a | grep pp-aeonia_c4avw | cut -d" " -f1
Let's destroy it:
# docker rm <container-ID>
e.g.
# docker rm 558890b93776
Now we need your servers UID:
# cat /etc/passwd | grep pp-XXXX | cut -d: -f3
e.g.
# cat /etc/passwd | grep pp-aeonia_c4avw | cut -d: -f3
In my case it's: 1010
Now we recreate the docker container with the information we have:
# docker create -it --name <pp-XXXX> -h docker -m <RAM>M --blkio-weight=500 -p <server-ip>:<server-port>:<server-port> -p <server-ip>:<server-port>:<server-port>/udp [ -p <external-ip>:<extra-port>:<extra-port> -p <external-ip>:<extra-port>:<extra-port>/udp | ... ] -u <UID> -v /home/<pp-XXXX>/public:/home/container pufferpanel/minecraft:latest
For example...
Say we have the following :
VariableValuepp-aeonia_c4avw6144192.168.20.3825565192.168.20.3881921010
We would run:
# docker create -it --name pp-aeonia_c4avw -h docker -m 6144M --blkio-weight=500 -p 192.168.20.38:25565:25565 -p 192.168.20.38:25565:25565/udp -p 192.168.20.38:8192:8192 -p 192.168.20.38:8192:8192/udp -u 1010 -v /home/pp-aeonia_c4avw/public:/home/container pufferpanel/minecraft:latest
For my particular setup for a server that BungeeCord will connect to, I have to use "172.17.0.1" for the , but make sure is your actual external IP:
# docker create -it --name pp-aeonia_c4avw -h docker -m 6144M --blkio-weight=500 -p 172.17.0.1:25565:25565 -p 172.17.0.1:25565:25565/udp -p 192.168.20.38:8192:8192 -p 192.168.20.38:8192:8192/udp -u 1010 -v /home/pp-aeonia_c4avw/public:/home/container pufferpanel/minecraft:latest
3. Switching away from OVH/SYS kernels
As documented, some dedicated server companies such as OVH and SoYouStart provide a non-stock kernel that doesn't have needed features.
For ubuntu on OVH/SYS:
# sudo apt-get install linux-image-generic
# sudo mv /boot/bzImage* /root/
# sudo grub-mkconfig -o /boot/grub/grub.cfg
# sudo reboot
For Centos on OVH/SYS:
# sudo yum install kernel
# sudo mv /boot/bzImage* /root/
# sudo grub-mkconfig -o /boot/grub/grub.cfg
# sudo reboot
Thanks to Lord_Ralex on #pufferpanel on irc.esper.net for the information on how to recreate the docker containers.
Beta Was this translation helpful? Give feedback.
All reactions