Skip to content
Advertisement

Tag: service

Docker containers as Linux services?

I just created a secure Docker Registry and ran it on a remote VM (using docker run …). I then ran docker ps and saw that it is in fact running. I exited the machine and then SSHed back in. Again, I ran docker ps and verified it “survived” me exiting the SSH session. This has me wondering: do Docker

permission denied when using su to execute a node program

here is my node program it is in /home/test/ and the test directory ‘s privilege is rwxrwxrwx. when i run node test.js with the tomcat account, the data.txt could be created. but when i run a service to execute su tomcat -c ‘node /home/test/test.js’, the data.txt could not be created and there is a permission denied hint in the stdout.

Advertisement