Jump to contentJump to page navigation: previous page [access key p]/next page [access key n]
Applies to SUSE Linux Enterprise Server 15 SP3

9 Working with containers Edit source

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 Edit source

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:

tux > docker start -ai <container name>

To remove unused containers:

tux > docker rm <container name>
Print this page