A
A
Alexander Nazarov2017-09-19 05:14:23
linux
Alexander Nazarov, 2017-09-19 05:14:23

How to start the game in Chroot?

Hello!
Tell me how to properly run the game server in Chroot.
The game runs on java.
I do this: I
connect the environment:

# mount --bind /proc ./game/proc/
# mount --bind /sys ./game/sys
# mount --bind /dev ./game/dev
# mount --bind /bin. /game/bin
# mount --bind /usr ./game/usr

I enter: chroot ./game/ /bin/bash
I enter the command: java -jar play.jar I
receive the answer: the command is not found.
Tried simple commands, like: touch , are executed.
Please tell me, am I on the right track or am I doing completely wrong things?
If I'm doing it wrong, tell me what's wrong and if it's not difficult, show an example of a launch.
Strongly do not kick, it is very difficult for me to understand.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
3
3vi1_0n3, 2017-09-19
@3vi1_0n3

I think that you can try
The path to the jar file is also desirable to specify

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question