Docker Community Forums

Share and learn in the Docker community.

FEATURE: trigger for executing commands in container?

(Will Stern) #1

It came up in a conversation today that a trigger for executing a command in a container would be helpful. The usecase in discussion was busting cache in a redis container.

A trigger would make it easy to automate container actions from slack, hubot…pretty much anywhere.

(Nathan Le Claire) #2

Not sure if it’s what you’re after, but docker exec will execute a new command inside of an already running container.

(Will Stern) #3

That’s exactly what I was thinking: a Docker Cloud trigger that would docker exec a command in a container.