Docker Community Forums

Share and learn in the Docker community.

Docker Cloud Using Wrong Command


(Scott Feinberg) #1

There seems to be an issue with Docker Cloud respecting the command I’m overriding the default image command. I’ve tried overriding in both the Stackfile and directly the Service definition, both times when I login to the server, it says that it’s running the command that is the default for the image.

To Reproduce:

Create a Dockerfile with a command. Build it.

Redefine that command using the command: option in the Stackfile YAML.

Launch the stack, observe that the command you set it to is displayed in the configuration. Log into the box and do ps aux. You’ll see the command is not the one you overrode the default Docker image with.

Any ideas on why this isn’t working?