6/18/2023 0 Comments Brew install socat![]() -volume gives our Docker container access to our current working directory. ![]() -e DISPLAY gives our Docker container access to your monitor.Now let's break this command down and see what it does: To run p4vasp, type the following in your command line: docker run -e DISPLAY=:0 -volume=$(pwd)":/root/data:rw" -w "/root/data/" -name="p4v_tmp" p4vasp``` It will continue to do so until you kill it. Note that this command will continue to run in your terminal since you instructed it to listen on port 6000. To do that, we need to install socat pakcage: brew install socatĪnd run it as: socat TCP-LISTEN:6000,reuseaddr,fork UNIX-CLIENT:\"$DISPLAY\" To do so, we need to create a tunnel between our p4vasp container and our host machine. Since p4vasp is a GUI application, we need means to access its GUI. Now, we have created a Docker image called p4vasp and it's ready to go! Some necessities To build the p4vasp image, type in the following command in the directory of Dockerfile. RUN echo "developer:x:$ -R /home/developer RUN apt-get update
0 Comments
Leave a Reply. |