I’m trying to send my Laravel app logs to standard output and read it through docker log. I’ve set the app/logging.php config to stderr that way: ‘default’ => ‘stack’, … ‘stack’ => [ ‘driver’ => ‘stack’, ‘channels’ => [‘single’, ‘stderr’], ], This works fine when the app responding to an HTTP request, but when I ..
Consider this issue.py file: import subprocess print(‘Calling subprocess…’) subprocess.run([‘python’, ‘–version’]) print(‘Subprocess is done!’) Executing python issue.py manually yields what I expect: Calling subprocess… Python 3.9.0 Subprocess is done! However, if I execute this inside a Docker container, something weird happens: $ docker run –rm -v $(pwd):/issue python:3.9.0 python /issue/issue.py Python 3.9.0 Calling subprocess… Subprocess is ..
I am using Docker 3.2.2 osx and it seems that lately when I add a line like RUN ls -la in my Dockerfile I am no longer seeing the output of the command in my terminal. There seems to be a new feature that compresses the output on the fly and I don’t know if ..
I am trying to configure my php errors to output to docker logs. All documentation I have read indicates that docker logs are tied to the containers stdout and stderr which come from /proc/self/fd/1 and /proc/self/fd/2. I created a symlink from my php error log file /var/log/php_errors.log to /proc/self/fd/1 with command: ln -sf /proc/self/fd/1 /var/log/php_errors.log ..
I have written a script to run some docker commands for me and I would like to silence the output from these commands. for example docker load, docker run or docker stop. docker load does have a flag –quiet that seems like it should do what I want however when I try to use this ..
I noticed that Docker doesn’t print the logs of the commands it executes anymore. I suppose it it came with an update (I have 19.03.13). For example, if I have the following RUN instruction I expect to see it’s output. RUN echo "Message!" But all it prints is: => [4/5] RUN echo "Message!" Question: How ..
I noticed that Docker doesn’t print the logs of the commands it executes anymore. I suppose it came with an update (I have 19.03.13). For example, if I have the following RUN instruction I expect to see it’s output. RUN echo "Message!" But all it prints is: => [4/5] RUN echo "Message!" Question: How to ..
Looking for a solution to return the live output when executing commands inside a container using the .exec_run method. ** The scenario is for a currently running container ** Executing a command inside the container this way functions as expected. run = container.exec_run(cmd=’apt update’) We print that with .output method but this isn’t a streamed ..
In python with docker-py, I am running two docker containers: eclipse-mosquitto an ubuntu:bionic based image where my C++ App is launched with ENTRYPOINT ["/directory/myApp"] I use the following docker-py API: container = client.containers.run(imageName, detach=True, name=containerName, ports = ports, volumes = volumes) When it is the eclipse-mosquitto container, if I call container.logs() I got the following ..
I’m currently trying to setup a flask application hosted by an nginx server through docker on a machine running Amazon Linux 2. Basically I’m just trying to see the simple output of my python script when I trigger it through nginx on my running docker image. I’ve previously worked on an Ubuntu machine and I ..