4 "github.com/Sirupsen/logrus"
5 swarmtypes "github.com/docker/docker/api/types/swarm"
8 // SetContainerSecretReferences sets the container secret references needed
9 func (daemon *Daemon) SetContainerSecretReferences(name string, refs []*swarmtypes.SecretReference) error {
10 if !secretsSupported() && len(refs) > 0 {
11 logrus.Warn("secrets are not supported on this platform")
15 c, err := daemon.GetContainer(name)
20 c.SecretReferences = refs