Docker container utilization
Â
Referring to PF client and Docker container utilization it is also possible to isolate the PowerFolder Server inside a docker container.
Docker Installation
For the Docker main installation visit the Docker documentation site.
Build PowerFolder Docker Image
Since the PowerFolder server image isn't registered to the Docker HUB, we have to build the Docker image first. The PowerFolder server Docker image will be registered to the Docker HUB when the Q&A process is finished. To build the image follow these steps:
- PowerFolder server:
- Get the Dockerfile for the PowerFolder client and put it to a desired location.
- Rename the file "Dockerfile_client" to "Dockerfile".
- In the directory with the file "Dockerfile" type "docker build --tag=powerfolder:server ." to your command line.
Run PowerFolder Server as Docker container
To run the PowerFolder Server as an Docker container type the following command to your command line:
- docker run --name=<CONTAINER NAME> -p <DATA PORT>:<DATA PORT> -p <WEB PORT>:<WEB PORT> -v <DESIRED LOCATION ON HOST>:/home/pf_admin/.PowerFolder/ -d powerfolder:server
- Example run command: docker run–name=pf_server_1 -p 1337:1337 -p 8080:8080 -v /home/user_xy/pf_server_1:/home/pf_admin/.PowerFolder/ -d powerfolder:server
Important:
- If you don't specify the <DATA PORT> and/or the <WEB PORT> in the docker run command the PF server will use the default ports: Data-Port: 1337 Web-Port: 8080
- If you're running a PF client on the same host as the PF server you have to specify another <DATA PORT> for the PF server than 1337!
- If you run the PF server with other ports than the default ports, you have to change the following PF server config entries (you'll find the config inside the <DESIRED LOCATION ON HOST> directory):
- port: Enter the new <DATA PORT> here.
- plugin.webinterface.port: Enter the new <WEB PORT> here.
- net.rcon.port: Enter the new <DATA PORT> here.