Jump to contentJump to page navigation: previous page [access key p]/next page [access key n]
documentation.suse.com / SUSE Linux Enterprise Server-Dokumentation / Container Guide / Working with Containers
Applies to SUSE Linux Enterprise Server 15 SP2

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 as soon as the application quits. You can start the container again by running:

> docker start -ai <container name>

To remove unused containers:

> docker rm <container name>