Run a command in my dev container without stopping the server

I have my development container up and running but I want to run some commands without stopping the server process. Is there a way to do this?

1 Like

If you just want to run a few commands and don’t need a separate terminal session then you can use okteto exec Okteto CLI | Okteto Documentation

If you want a separate session then you can ssh into the dev container using the ssh config entry generated by okteto. For example, if I am developing on the api of movies sample up, GitHub - okteto/movies: React + Node multi service application, by using okteto up to create a dev container for the api. I can create a second terminal and run ssh api.okteto and I’ll have another shell in the development container.