René's URL Explorer Experiment


Title: Docker Swarm Service Container : Capability prefixed with CAP_ cannot be deserialized (InvalidFormatException) · Issue #1980 · docker-java/docker-java · GitHub

Open Graph Title: Docker Swarm Service Container : Capability prefixed with CAP_ cannot be deserialized (InvalidFormatException) · Issue #1980 · docker-java/docker-java

X Title: Docker Swarm Service Container : Capability prefixed with CAP_ cannot be deserialized (InvalidFormatException) · Issue #1980 · docker-java/docker-java

Description: Docker: version 20.10.18, build b40c2f6 docker-java:3.2.8 Description We have a service deployed to a Docker Swarm, using docker-compose to set the IPC_LOCK capability, as follows: services: myService: image: myImage cap_add: - IPC_LOCK ...

Open Graph Description: Docker: version 20.10.18, build b40c2f6 docker-java:3.2.8 Description We have a service deployed to a Docker Swarm, using docker-compose to set the IPC_LOCK capability, as follows: services: myServ...

X Description: Docker: version 20.10.18, build b40c2f6 docker-java:3.2.8 Description We have a service deployed to a Docker Swarm, using docker-compose to set the IPC_LOCK capability, as follows: services: myServ...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Docker Swarm Service Container : Capability prefixed with CAP_ cannot be deserialized (InvalidFormatException)","articleBody":"Docker: version 20.10.18, build b40c2f6\r\ndocker-java:3.2.8\r\n\r\n**Description**\r\nWe have a service deployed to a Docker Swarm, using docker-compose to set the IPC_LOCK capability, as follows:\r\n\r\n```\r\nservices:\r\n  myService:\r\n    image: myImage\r\n    cap_add:\r\n      - IPC_LOCK\r\n```\r\n\r\nCalling the docker-java `InspectContainerCmdImpl` to inspect the container on the node to which the service task has been deployed fails and produces the following exception:\r\n\r\n```\r\n2022-10-11T14:40:41.800756150Z java.lang.RuntimeException: com.fasterxml.jackson.databind.exc.InvalidFormatException: Cannot deserialize value of type `com.github.dockerjava.api.model.Capability` from String \"CAP_IPC_LOCK\": value not one of declared Enum instance names: [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, SYS_RAWIO, SYS_ADMIN, KILL, MAC_ADMIN, SYS_RESOURCE, CHOWN, SETPCAP, SYS_PTRACE, NET_ADMIN, SETFCAP, SYS_NICE, LINUX_IMMUTABLE, AUDIT_CONTROL, LEASE, AUDIT_WRITE, SYS_MODULE, MKNOD, SYSLOG, MAC_OVERRIDE, SYS_TIME, SETGID, SETUID, SYS_TTY_CONFIG, NET_BROADCAST]\r\n2022-10-11T14:40:41.800761129Z  at [Source: (com.github.dockerjava.core.DefaultInvocationBuilder$2); line: 1, column: 2062] (through reference chain: com.github.dockerjava.api.command.InspectContainerResponse[\"HostConfig\"]-\u003ecom.github.dockerjava.api.model.HostConfig[\"CapAdd\"]-\u003ejava.lang.Object[][0])\r\n2022-10-11T14:40:41.800784357Z \tat com.github.dockerjava.core.DefaultInvocationBuilder.get(DefaultInvocationBuilder.java:77) ~[docker-java-core-3.2.8.jar!/:na]\r\n2022-10-11T14:40:41.800787901Z \tat com.github.dockerjava.core.exec.InspectContainerCmdExec.execute(InspectContainerCmdExec.java:31) ~[docker-java-core-3.2.8.jar!/:na]\r\n2022-10-11T14:40:41.800792420Z \tat com.github.dockerjava.core.exec.InspectContainerCmdExec.execute(InspectContainerCmdExec.java:13) ~[docker-java-core-3.2.8.jar!/:na]\r\n2022-10-11T14:40:41.800795370Z \tat com.github.dockerjava.core.exec.AbstrSyncDockerCmdExec.exec(AbstrSyncDockerCmdExec.java:21) ~[docker-java-core-3.2.8.jar!/:na]\r\n2022-10-11T14:40:41.800798829Z \tat com.github.dockerjava.core.command.AbstrDockerCmd.exec(AbstrDockerCmd.java:35) ~[docker-java-core-3.2.8.jar!/:na]\r\n2022-10-11T14:40:41.800802249Z \tat com.github.dockerjava.core.command.InspectContainerCmdImpl.exec(InspectContainerCmdImpl.java:52) ~[docker-java-core-3.2.8.jar!/:na]\r\n```\r\n\r\nBased on the documentation, Docker uses a capability name with/without the CAP_ prefix interchangeably:\r\nhttps://docs.docker.com/engine/reference/run/\r\n\r\n\u003e The --cap-add and --cap-drop flags accept capabilities to be specified with a CAP_ prefix. The following examples are therefore equivalent:\r\n\u003e docker run --cap-add=SYS_ADMIN ...\r\n\u003e docker run --cap-add=CAP_SYS_ADMIN ...\r\n\r\nThis does not appear to be a Docker / Docker swarm bug.  Can the CAP_ prefix be automatically stripped to prevent the deserialization issue?\r\n\r\nThanks\r\n\r\n","author":{"url":"https://github.com/armband","@type":"Person","name":"armband"},"datePublished":"2022-10-13T13:58:34.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":14},"url":"https://github.com/1980/docker-java/issues/1980"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:77b77d46-6b44-3db6-5e34-a27cfdaa7707
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idB18A:B8167:260D366:34A56BC:6972992C
html-safe-noncec4f8c88b3e665827f8c2cc08395a800482f87aac8e4bfc55a693ab26def905c7
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMThBOkI4MTY3OjI2MEQzNjY6MzRBNTZCQzo2OTcyOTkyQyIsInZpc2l0b3JfaWQiOiI0NzcxMjQ1NjAxNDMxMTMyNDYwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac4f997e8973056e618486cb46ebcafed5df939938d2ee618a45a44adfb8e647e1
hovercard-subject-tagissue:1407857464
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/1980/issue_layout
twitter:imagehttps://opengraph.githubassets.com/35a5862e2c505d911ab93fb987afc7b82e3dbefe6a5e5a341a9e1ec954edf979/docker-java/docker-java/issues/1980
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/35a5862e2c505d911ab93fb987afc7b82e3dbefe6a5e5a341a9e1ec954edf979/docker-java/docker-java/issues/1980
og:image:altDocker: version 20.10.18, build b40c2f6 docker-java:3.2.8 Description We have a service deployed to a Docker Swarm, using docker-compose to set the IPC_LOCK capability, as follows: services: myServ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamearmband
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/1980#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdocker-java%2Fdocker-java%2Fissues%2F1980
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%2F1980
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/1980
Reloadhttps://github.com/docker-java/docker-java/issues/1980
Reloadhttps://github.com/docker-java/docker-java/issues/1980
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/1980
New issuehttps://github.com/login?return_to=https://github.com/docker-java/docker-java/issues/1980
Docker Swarm Service Container : Capability prefixed with CAP_ cannot be deserialized (InvalidFormatException)https://github.com/docker-java/docker-java/issues/1980#top
help wantedhttps://github.com/docker-java/docker-java/issues?q=state%3Aopen%20label%3A%22help%20wanted%22
https://github.com/armband
https://github.com/armband
armbandhttps://github.com/armband
on Oct 13, 2022https://github.com/docker-java/docker-java/issues/1980#issue-1407857464
https://docs.docker.com/engine/reference/run/https://docs.docker.com/engine/reference/run/
help wantedhttps://github.com/docker-java/docker-java/issues?q=state%3Aopen%20label%3A%22help%20wanted%22
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.