Can not create services with secrets in docker swarm mode

Solution Verified - Updated -

Issue

  • When I create a new service that has a secret attached, the container never gets up due to "read-only file system".
  • Swarm containers fail to start with the following error:
 "starting container failed: RemoveSecretsPath failed: remove /var/lib/docker/containers/86261ca647018d67fc5375f897482c7bbfe8331cbeeaf033e34e7d892b5c5571/secrets/pass: read-only file system" module="node/agent/taskmanager" task.id=4hgrwy43dysdlq2apqmxb72ge

Environment

  • Red Hat Enterprise Linux 7
  • Red Hat Enterprise Linux Atomic Host
  • docker-1.13.1
  • docker-latest 1.13.1

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content