Launch Rancher GUI console.

Navigate to infrastructure > Containers

Click on “Add Container”

Please Note: Any options that “docker run” command supports while creating containers, Rancher supports that too, as claimed by Rancher 🙂

Provide a Name and if desired, Description for the container.

Provide the Image to use. You can use any image on DockerHub as well as any registries that have been added to Rancher. The syntax for image name would match any docker run commands. For list of images on DockerHub refer to below link

Here’s the syntax for image name:

[registry-name]/[namespace]/[imagename]:[version]

I am going to add a bash container for now 🙂

Optionally, you can add Port Map.

Port map provides the ability to access the exposed ports on the container through host IP.
Public port is used to communicate with the container. Private port is used to connect to the exposed port of the container.

Next, fill container options in following section:

I am going to keep default settings and click on “Create” button. The container is ready.

Manage your first container

Navigate to Infrastructure > Containers

Search for your newly created container from the list:

Click on the three dots sign at the right to view options:

Click “Execute Shell” to launch container shell.