Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: There is no logs for building image #836

Closed
michal-korniak opened this issue Mar 16, 2023 · 2 comments · Fixed by #839
Closed

[Bug]: There is no logs for building image #836

michal-korniak opened this issue Mar 16, 2023 · 2 comments · Fixed by #839
Assignees
Labels
bug Something isn't working

Comments

@michal-korniak
Copy link

Testcontainers version

3.0.0

Using the latest Testcontainers version?

Yes

Host OS

Windows

Host arch

x64

.NET version

6

Docker version

Client:
 Cloud integration: v1.0.29
 Version:           20.10.22
 API version:       1.41
 Go version:        go1.18.9
 Git commit:        3a2c30b
 Built:             Thu Dec 15 22:36:18 2022
 OS/Arch:           windows/amd64
 Context:           default
 Experimental:      true

Server: Docker Desktop 4.16.2 (95914)
 Engine:
  Version:          20.10.22
  API version:      1.41 (minimum version 1.12)
  Go version:       go1.18.9
  Git commit:       42c8b31
  Built:            Thu Dec 15 22:26:14 2022
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.6.14
  GitCommit:        9ba4b250366a5ddde94bb7c9d1def331423aa323
 runc:
  Version:          1.1.4
  GitCommit:        v1.1.4-0-g5fd4c4d
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0

Docker info

Client:
 Context:    default
 Debug Mode: false
 Plugins:
  buildx: Docker Buildx (Docker Inc., v0.10.0)
  compose: Docker Compose (Docker Inc., v2.15.1)
  dev: Docker Dev Environments (Docker Inc., v0.0.5)
  extension: Manages Docker extensions (Docker Inc., v0.2.17)
  sbom: View the packaged-based Software Bill Of Materials (SBOM) for an image (Anchore Inc., 0.6.0)
  scan: Docker Scan (Docker Inc., v0.23.0)

Server:
 Containers: 0
  Running: 0
  Paused: 0
  Stopped: 0
 Images: 16
 Server Version: 20.10.22
 Storage Driver: overlay2
  Backing Filesystem: extfs
  Supports d_type: true
  Native Overlay Diff: true
  userxattr: false
 Logging Driver: json-file
 Cgroup Driver: cgroupfs
 Cgroup Version: 1
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
 Swarm: inactive
 Runtimes: io.containerd.runc.v2 io.containerd.runtime.v1.linux runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: 9ba4b250366a5ddde94bb7c9d1def331423aa323
 runc version: v1.1.4-0-g5fd4c4d
 init version: de40ad0
 Security Options:
  seccomp
   Profile: default
 Kernel Version: 5.10.102.1-microsoft-standard-WSL2
 Operating System: Docker Desktop
 OSType: linux
 Architecture: x86_64
 CPUs: 16
 Total Memory: 24.84GiB
 Name: docker-desktop
 ID: 6SNR:XR7Q:YZZL:Y3SG:YHAJ:G4QD:GLBA:R5ZZ:DBFQ:WGP2:I445:G53U
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 HTTP Proxy: http.docker.internal:3128
 HTTPS Proxy: http.docker.internal:3128
 No Proxy: hubproxy.docker.internal
 Registry: https://index.docker.io/v1/
 Labels:
 Experimental: false
 Insecure Registries:
  hubproxy.docker.internal:5000
  127.0.0.0/8
 Live Restore Enabled: false

WARNING: No blkio throttle.read_bps_device support
WARNING: No blkio throttle.write_bps_device support
WARNING: No blkio throttle.read_iops_device support
WARNING: No blkio throttle.write_iops_device support

What happened?

Sometime ago I created PR that fixed logging for image building. Prior to this, there was no logs during this process. It seems that this change was discarded and because of that problem returned. I attach logs that were generated during building of four images.

The commit that discarded changes: b73e6c0

Relevant log output

[xUnit.net 00:00:32.03] Tests.E2E: [Information] 16/03/2023 09:21:35.138 - Docker network d186301ed6c9f5f9bea6147ba7c41b2463aec1ffb6dd302c6240f6625412f3ad created
[xUnit.net 00:00:32.06] Tests.E2E: [Information] 16/03/2023 09:21:35.169 - Pattern ^\.dockerignore added to the regex cache
[xUnit.net 00:00:32.06] Tests.E2E: [Information] 16/03/2023 09:21:35.169 - Pattern ^\.dockerignore added to the regex cache
[xUnit.net 00:00:32.06] Tests.E2E: [Information] 16/03/2023 09:21:35.169 - Pattern ^\.dockerignore added to the regex cache
[xUnit.net 00:00:32.06] Tests.E2E: [Information] 16/03/2023 09:21:35.169 - Pattern ^\.dockerignore added to the regex cache
[xUnit.net 00:00:32.06] Tests.E2E: [Information] 16/03/2023 09:21:35.169 - Pattern ^([\\\/]?(DockerfileProd\b|$)) added to the regex cache
[xUnit.net 00:00:32.06] Tests.E2E: [Information] 16/03/2023 09:21:35.169 - Pattern ^([\\\/]?(DockerfileProd\b|$)) added to the regex cache
[xUnit.net 00:00:32.06] Tests.E2E: [Information] 16/03/2023 09:21:35.169 - Pattern ^([\\\/]?(DockerfileProd\b|$)) added to the regex cache
[xUnit.net 00:00:32.06] Tests.E2E: [Information] 16/03/2023 09:21:35.169 - Pattern ^([\\\/]?(DockerfileProd\b|$)) added to the regex cache
[xUnit.net 00:00:35.56] Tests.E2E: [Information] 16/03/2023 09:21:38.663 - Docker image X:latest built
[xUnit.net 00:01:15.84] Tests.E2E: [Information] 16/03/2023 09:22:18.945 - Docker image Y:latest built
[xUnit.net 00:02:02.58] Tests.E2E: [Information] 16/03/2023 09:23:05.683 - Docker image Z:latest built
[xUnit.net 00:03:29.47] Tests.E2E: [Information] 16/03/2023 09:24:32.578 - Docker image A:latest built
[xUnit.net 00:03:29.54] Tests.E2E: [Information] 16/03/2023 09:24:32.645 - Searching Docker registry credential in CredsStore
[xUnit.net 00:03:29.54] Tests.E2E: [Information] 16/03/2023 09:24:32.646 - Searching Docker registry credential in CredHelpers
[xUnit.net 00:03:29.54] Tests.E2E: [Information] 16/03/2023 09:24:32.646 - Searching Docker registry credential in Auths
[xUnit.net 00:03:29.54] Tests.E2E: [Information] 16/03/2023 09:24:32.646 - Searching Docker registry credential in Auths
[xUnit.net 00:03:30.49] Tests.E2E: [Information] 16/03/2023 09:24:33.600 - Docker registry credential https://index.docker.io/v1/ found
[xUnit.net 00:03:34.06] Tests.E2E: [Trace] 16/03/2023 09:24:37.171 - [>                                                  ]  28.75kB/2.814MB
[xUnit.net 00:03:34.07] Tests.E2E: [Trace] 16/03/2023 09:24:37.177 - [>                                                  ]  2.738kB/270.8kB
[xUnit.net 00:03:34.08] Tests.E2E: [Trace] 16/03/2023 09:24:37.189 - [>                                                  ]  25.35kB/2.407MB
[xUnit.net 00:03:34.20] Tests.E2E: [Trace] 16/03/2023 09:24:37.309 - [=======>                                           ]  404.8kB/2.814MB
[xUnit.net 00:03:34.21] Tests.E2E: [Trace] 16/03/2023 09:24:37.314 - [======>                                            ]  294.2kB/2.407MB
[xUnit.net 00:03:34.30] Tests.E2E: [Trace] 16/03/2023 09:24:37.409 - [====================================>              ]  2.075MB/2.814MB
[xUnit.net 00:03:34.31] Tests.E2E: [Trace] 16/03/2023 09:24:37.417 - [==============================>                    ]  1.461MB/2.407MB
[xUnit.net 00:03:34.34] Tests.E2E: [Trace] 16/03/2023 09:24:37.451 - [>                                                  ]  32.77kB/2.814MB
[xUnit.net 00:03:34.42] Tests.E2E: [Trace] 16/03/2023 09:24:37.528 - [==================================================>]  2.814MB/2.814MB
[xUnit.net 00:03:34.42] Tests.E2E: [Trace] 16/03/2023 09:24:37.529 - [==================================================>]  2.814MB/2.814MB
[xUnit.net 00:03:34.46] Tests.E2E: [Trace] 16/03/2023 09:24:37.567 - [======>                                            ]  32.77kB/270.8kB
[xUnit.net 00:03:34.50] Tests.E2E: [Trace] 16/03/2023 09:24:37.608 - [==================================================>]  270.8kB/270.8kB
[xUnit.net 00:03:34.50] Tests.E2E: [Trace] 16/03/2023 09:24:37.611 - [==================================================>]  270.8kB/270.8kB
[xUnit.net 00:03:34.54] Tests.E2E: [Trace] 16/03/2023 09:24:37.646 - [>                                                  ]  32.77kB/2.407MB
[xUnit.net 00:03:34.61] Tests.E2E: [Trace] 16/03/2023 09:24:37.718 - [==================================================>]  2.407MB/2.407MB
[xUnit.net 00:03:34.65] Tests.E2E: [Information] 16/03/2023 09:24:37.753 - Docker image testcontainers/ryuk:0.3.4 created

Additional information

No response

@michal-korniak michal-korniak added the bug Something isn't working label Mar 16, 2023
@HofmeisterAn
Copy link
Collaborator

Are the missing properties only assigned when building an image 🤔? During my tests, I noticed that these properties appeared empty. It is possible that I was only looking at the Docker pull without realising that the values were used somewhere else.

@michal-korniak
Copy link
Author

Check the PR I linked. I attached some screenshots that shows that the other properties are also used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants