1

...I go nuts with that apparently simple issue:

  • installed and started a docker on synology DS918 (DSM 7.0.1)
  • running the docker via putty works: docker run --rm -v /volume2/myapp/temp:/app dockername (...)
  • running that same command via php shell_exec() fails: the mounted path could not be found inside the docker container.

so i´ve tried different mappings of paths - also absolute/relative paths, different settings of quotation marks, different PHP versions..

Where is the difference between a putty and a php session? Thanks in advance!

feddoh
  • 41
  • 7
  • 1
    in CLI php (a script) or in a web context? the difference could be simply not being the same user – istepaniuk Dec 19 '21 at 21:49
  • ...in a web context, thanks I will check the user! – feddoh Dec 20 '21 at 06:54
  • Got it, thanks istepaniuk! The used had to be added to the docker group as here described: https://stackoverflow.com/questions/48957195/how-to-fix-docker-got-permission-denied-issue – feddoh Dec 20 '21 at 21:00

0 Answers0