René's URL Explorer Experiment


Title: DockerClient.inspectContainerCmd() fails when Capabilities are not in uppercase · Issue #2365 · docker-java/docker-java · GitHub

Open Graph Title: DockerClient.inspectContainerCmd() fails when Capabilities are not in uppercase · Issue #2365 · docker-java/docker-java

X Title: DockerClient.inspectContainerCmd() fails when Capabilities are not in uppercase · Issue #2365 · docker-java/docker-java

Description: Version Information com.github.docker-java:docker-java-core:3.4.0 com.github.docker-java:docker-java-transport-httpclient5:3.4.0 Docker version: Client: Version: 27.2.0 API version: 1.47 Go version: go1.21.13 Git commit: 3ab4256 Built: T...

Open Graph Description: Version Information com.github.docker-java:docker-java-core:3.4.0 com.github.docker-java:docker-java-transport-httpclient5:3.4.0 Docker version: Client: Version: 27.2.0 API version: 1.47 Go version...

X Description: Version Information com.github.docker-java:docker-java-core:3.4.0 com.github.docker-java:docker-java-transport-httpclient5:3.4.0 Docker version: Client: Version: 27.2.0 API version: 1.47 Go version...

Opengraph URL: https://github.com/docker-java/docker-java/issues/2365

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"DockerClient.inspectContainerCmd() fails when Capabilities are not in uppercase","articleBody":"### Version Information\r\ncom.github.docker-java:docker-java-core:3.4.0\r\ncom.github.docker-java:docker-java-transport-httpclient5:3.4.0\r\n\r\nDocker version:\r\n```\r\nClient:\r\n Version:           27.2.0\r\n API version:       1.47\r\n Go version:        go1.21.13\r\n Git commit:        3ab4256\r\n Built:             Tue Aug 27 14:14:45 2024\r\n OS/Arch:           darwin/arm64\r\n Context:           desktop-linux\r\n\r\nServer: Docker Desktop 4.34.0 (165256)\r\n Engine:\r\n  Version:          27.2.0\r\n  API version:      1.47 (minimum version 1.24)\r\n  Go version:       go1.21.13\r\n  Git commit:       3ab5c7d\r\n  Built:            Tue Aug 27 14:15:41 2024\r\n  OS/Arch:          linux/arm64\r\n  Experimental:     false\r\n containerd:\r\n  Version:          1.7.20\r\n  GitCommit:        8fc6bcff51318944179630522a095cc9dbf9f353\r\n runc:\r\n  Version:          1.1.13\r\n  GitCommit:        v1.1.13-0-g58aa920\r\n docker-init:\r\n  Version:          0.19.0\r\n  GitCommit:        de40ad0\r\n```\r\n\r\n### Steps to reproduce\r\n1. Create a container with the following command:\r\n    ```\r\n    docker run --rm --cap-add net_admin -d nginx\r\n    ```\r\n2. Compile and run the following java code:\r\n    ```\r\n    import com.github.dockerjava.api.DockerClient;\r\n    import com.github.dockerjava.core.*;\r\n    import com.github.dockerjava.httpclient5.ApacheDockerHttpClient;\r\n    import com.github.dockerjava.transport.DockerHttpClient;\r\n    \r\n    import java.net.URI;\r\n    \r\n    public class DockerTest {\r\n      public static void main(String[] args) {\r\n        DockerClientConfig config = DefaultDockerClientConfig.createDefaultConfigBuilder()\r\n          .withDockerHost(\"unix:///var/run/docker.sock\")\r\n          .withDockerTlsVerify(false)\r\n          .withApiVersion(RemoteApiVersion.VERSION_1_42)\r\n          .build();\r\n    \r\n        DockerHttpClient httpClient = new ApacheDockerHttpClient.Builder()\r\n          .dockerHost(URI.create(\"unix:///var/run/docker.sock\"))\r\n          .build();\r\n    \r\n        DockerClient client = DockerClientImpl.getInstance(config, httpClient);\r\n    \r\n        client.inspectContainerCmd(\"\u003ccontainer_id\u003e\").exec();  // replace this with actual container id\r\n      }\r\n    }\r\n    ```\r\n3. The following exception is thrown:\r\n    ```\r\n    Exception in thread \"main\" java.lang.RuntimeException: com.fasterxml.jackson.databind.exc.InvalidFormatException: Cannot deserialize value of type `com.github.dockerjava.api.model.Capability` from String \"net_admin\": not one of the values accepted for Enum class: [ALL, SYS_BOOT, DAC_OVERRIDE, NET_RAW, BLOCK_SUSPEND, FOWNER, IPC_LOCK, IPC_OWNER, SYS_PACCT, NET_BIND_SERVICE, WAKE_ALARM, FSETID, DAC_READ_SEARCH, SYS_CHROOT, AUDIT_READ, SYS_RAWIO, SYS_ADMIN, KILL, MAC_ADMIN, SYS_RESOURCE, CHOWN, PERFMON, SETPCAP, SYS_PTRACE, NET_ADMIN, SETFCAP, SYS_NICE, LINUX_IMMUTABLE, BPF, AUDIT_CONTROL, LEASE, AUDIT_WRITE, SYS_MODULE, MKNOD, SYSLOG, MAC_OVERRIDE, SYS_TIME, SETGID, SETUID, CHECKPOINT_RESTORE, SYS_TTY_CONFIG, NET_BROADCAST]\r\n    at [Source: UNKNOWN; byte offset: #UNKNOWN] (through reference chain: com.github.dockerjava.api.command.InspectContainerResponse[\"HostConfig\"]-\u003ecom.github.dockerjava.api.model.HostConfig[\"CapAdd\"]-\u003ejava.lang.Object[][0])\r\n    at com.github.dockerjava.core.DefaultInvocationBuilder.get(DefaultInvocationBuilder.java:77)\r\n    at com.github.dockerjava.core.exec.InspectContainerCmdExec.execute(InspectContainerCmdExec.java:31)\r\n    at com.github.dockerjava.core.exec.InspectContainerCmdExec.execute(InspectContainerCmdExec.java:13)\r\n    at com.github.dockerjava.core.exec.AbstrSyncDockerCmdExec.exec(AbstrSyncDockerCmdExec.java:21)\r\n    at com.github.dockerjava.core.command.AbstrDockerCmd.exec(AbstrDockerCmd.java:33)\r\n    at com.github.dockerjava.core.command.InspectContainerCmdImpl.exec(InspectContainerCmdImpl.java:51)\r\n    at dockerbug.DockerTest.main(DockerTest.java:24)\r\n\r\n    ```\r\n5. Start another container with the following:\r\n    ```\r\n    docker run --rm --cap-add NET_ADMIN -d nginx\r\n    ```\r\n7. Run the java program again with the new id from step 5, and now it runs without error.\r\n8. Same issue is seen using `--cap-drop net_admin`","author":{"url":"https://github.com/defung","@type":"Person","name":"defung"},"datePublished":"2024-11-01T20:25:23.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/2365/docker-java/issues/2365"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:4b8baeaa-40e6-1865-b92b-0a307c6b14a1
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idC37E:361663:F952DA:1554AD5:697299B6
html-safe-nonce6d2d1c9b06280d0b8bc95affc920ad965c49165f00fa3d7de35b70263839cf62
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMzdFOjM2MTY2MzpGOTUyREE6MTU1NEFENTo2OTcyOTlCNiIsInZpc2l0b3JfaWQiOiI1MTY4NjE1MTU4MzU1NDYwMzgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac539a874cbf891d04e3bdf275649993d6f834bf55abb1b30536d0e05cfa8cbd1b
hovercard-subject-tagissue:2629813399
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/docker-java/docker-java/2365/issue_layout
twitter:imagehttps://opengraph.githubassets.com/66c784ebf9c7fc9448c5073ee3efc63ef20624f82474fbbdd51fa0a69ca71da3/docker-java/docker-java/issues/2365
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/66c784ebf9c7fc9448c5073ee3efc63ef20624f82474fbbdd51fa0a69ca71da3/docker-java/docker-java/issues/2365
og:image:altVersion Information com.github.docker-java:docker-java-core:3.4.0 com.github.docker-java:docker-java-transport-httpclient5:3.4.0 Docker version: Client: Version: 27.2.0 API version: 1.47 Go version...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedefung
hostnamegithub.com
expected-hostnamegithub.com
None72bb1c46bb1ebdc0dc83a0a57b64c3b4d668c125d1125d94898213a4c9db8da2
turbo-cache-controlno-preview
go-importgithub.com/docker-java/docker-java git https://github.com/docker-java/docker-java.git
octolytics-dimension-user_id7772003
octolytics-dimension-user_logindocker-java
octolytics-dimension-repository_id20415251
octolytics-dimension-repository_nwodocker-java/docker-java
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id20415251
octolytics-dimension-repository_network_root_nwodocker-java/docker-java
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release7b2326416cb9f2fa4ab7b6ede33ad46d0dd431a1
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/docker-java/docker-java/issues/2365#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdocker-java%2Fdocker-java%2Fissues%2F2365
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdocker-java%2Fdocker-java%2Fissues%2F2365
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=docker-java%2Fdocker-java
Reloadhttps://github.com/docker-java/docker-java/issues/2365
Reloadhttps://github.com/docker-java/docker-java/issues/2365
Reloadhttps://github.com/docker-java/docker-java/issues/2365
docker-java https://github.com/docker-java
docker-javahttps://github.com/docker-java/docker-java
Notifications https://github.com/login?return_to=%2Fdocker-java%2Fdocker-java
Fork 1.1k https://github.com/login?return_to=%2Fdocker-java%2Fdocker-java
Star 3.2k https://github.com/login?return_to=%2Fdocker-java%2Fdocker-java
Code https://github.com/docker-java/docker-java
Issues 37 https://github.com/docker-java/docker-java/issues
Pull requests 49 https://github.com/docker-java/docker-java/pulls
Discussions https://github.com/docker-java/docker-java/discussions
Actions https://github.com/docker-java/docker-java/actions
Projects 0 https://github.com/docker-java/docker-java/projects
Security 0 https://github.com/docker-java/docker-java/security
Insights https://github.com/docker-java/docker-java/pulse
Code https://github.com/docker-java/docker-java
Issues https://github.com/docker-java/docker-java/issues
Pull requests https://github.com/docker-java/docker-java/pulls
Discussions https://github.com/docker-java/docker-java/discussions
Actions https://github.com/docker-java/docker-java/actions
Projects https://github.com/docker-java/docker-java/projects
Security https://github.com/docker-java/docker-java/security
Insights https://github.com/docker-java/docker-java/pulse
New issuehttps://github.com/login?return_to=https://github.com/docker-java/docker-java/issues/2365
New issuehttps://github.com/login?return_to=https://github.com/docker-java/docker-java/issues/2365
DockerClient.inspectContainerCmd() fails when Capabilities are not in uppercasehttps://github.com/docker-java/docker-java/issues/2365#top
https://github.com/defung
https://github.com/defung
defunghttps://github.com/defung
on Nov 1, 2024https://github.com/docker-java/docker-java/issues/2365#issue-2629813399
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.