Jet run

1 minute read


Run a command inside a service container.


jet run SERVICE [COMMAND [ARGS...]] [flags]


Name, shorthand




Turn debug output on


current directory

The directory to use


The name of the service with which the dockercfg should be generated


The path to the encrypted dockercfg file to be used


Override the entrypoint of the image

--env, -e

Set an environment variable (can be used multiple times)



The key path for encrypting secure environment variables.


Do not remove any containers that are run, overrides all other settings

--no-tty, -T

Disable pseudo-tty allocation



Pull images that are already present



The relative services path

Extended description

The jet run command will build and execute a service from the codeship-services.yml file, or run a single command.

This is a good way to debug your services

For instance, you can run jet run service_app or jet run service_app echo "hello" where service_app is one of the services defined in your codeship-services.yml.


Debugging a Build

You can debug your builds locally by first executing jet run, then connect to your running containers to manually run the commands from your codeship-steps.yml file.

As an example, the following will start your service, display the container ID, and then connect to the running container using the container ID.

$ jet run PRIMARY_SERVICE_NAME # locate CONTAINER_ID $ docker ps -a $ docker exec -it CONTAINER_ID /bin/sh