jenkinsci / docker-plugin

Jenkins cloud plugin that uses Docker
https://plugins.jenkins.io/docker-plugin/
MIT License
486 stars 322 forks source link

No logs when using awslogs log driver #1059

Open asercs opened 3 months ago

asercs commented 3 months ago

Jenkins and plugins versions report

Environment ```text Jenkins: 2.440.1 OS: Linux - 6.1.72-96.166.amzn2023.x86_64 Java: 17.0.10 - Amazon.com Inc. (OpenJDK 64-Bit Server VM) -------- docker-commons:439.va_3cb_0a_6a_fb_29docker-java-api:3.3.4-86.v39b_a_5ede342c docker-plugin:1.6durable-task:550.v0930093c4b_a_6 ```

What Operating System are you using (both controller, and any agents involved in the problem)?

I use Linux 2023 to host Jenkins, but my jobs are running under Docker Container using the latest ubuntu

Reproduction steps

  1. Edit daemon.json to use awslogs
  2. Run the job

Expected Results

See some job logs in the Amazon CloudWatch

Actual Results

It creates a log stream, but it's empty

Anything else?

I have all the required permissions to the CloudWatch, it creates a log stream but doesn't write anything. When I run the container manually using docker run -it image-name, I see logs in the CloudWatch. I tried the Assign Pseudo TTY option in the settings of the Cloud, but it doesn't change anything. In the job itself, I have Console Output

Are you interested in contributing a fix?

No response