Jump to contentJump to page navigation: previous page [access key p]/next page [access key n]
documentation.suse.com / Documentación de SUSE Linux Enterprise Server / Container Guide / Working with containers
Applies to SUSE Linux Enterprise Server 15 SP3

9 Working with containers

After you have created a custom image, you can start containers based on it. You can run an instance of the image using the docker run command. The command accepts several arguments:

  • A container name—it is recommended to name your container

  • A user to use in your container

  • A mount point

  • A particular host name, etc.

9.1 Starting and removing containers

Containers normally exit when their main process finishes. For example, if a container starts a particular application, the container exits when the application quits. You can start the container again by running:

> docker start -ai <container name>

To remove unused containers:

> docker rm <container name>