Run Processes in Containers

So docker containers have one main process, and they can have names. You don’t give it a name, it’ll make one up. Let’s take a look at that. So if I run docker run, just like the example we’ve been using a lot, I’m gonna throw in some extra arguments we haven’t used before. So I’m gonna throw in the –rm. This is a very common command, lots of people us it all the time when you just wanna run something in your container, but you don’t wanna keep the container afterwards. That says delete this container when it exits.

Back to: Docker Master Course