Documentation

  • 4.0
  • 10/25/2021
  • Public Content

Create New Container with Existing Image

These instructions describe how to create a new container with an image from Docker* Hub or Docker* Registry.

Step 1: Go to Configure > Containers and Container Stacks

Select
Configure
in the top menu and select
Containers and Container Stacks
.
In the Containers and Container Stacks screen you will see a list of existing containers, their state and available actions. You can also search, filter and order the container list, as well as select multiple containers to apply bulk actions.
If there are no containers in the host machine, the Containers and Container Stacks screen displays a message and shortcut for adding containers.

Step 2: Add a Container using an Existing Docker* Hub or Docker* Registry Image

  1. In the
    Containers and Container Stacks
    screen, click on
    Add Container.
  2. Name the container. Don't use spaces or special characters. In the screen below, it is named:
    nginx_hello_world
  3. Select the
    Pull an Image
    option. Fill in the field with the image name. This example uses:
    nginx:latest
  4. Click on
    Next
    .
    The next step is defining container settings. All configurations are optional. The instructions below will walk through defining port configuration and adding variables for a container with Hostname
    nginx-test
    , on
    port 8089
    , in
    Privileged Mode
    .
  5. Scroll to
    Port Configuration
    , click on
    Publish a New Manual Network Port.
  6. In
    Host Port
    , enter 8089. In
    Mapped Container Port
    , enter 80. In
    Protocol
    , select TCP.
  7. In
    Additional Variables
    , click on
    Add Additional Variables
    .
  8. In
    Name
    , select
    Hostname
    . Enter
    nginx-test
    as
    Value
    .
  9. Click on
    Add Additional Variables
    .
  10. In
    Name
    , select
    Privileged
    . Enter
    true
    in
    Value
    .
  11. Click on
    Next
    .
    You can review configurations and go back to edit details if any modifications are needed.
  12. Click on
    Deploy
    .
  13. Click on
    Continue
    .
    You should see a message confirming that the container is being deployed, followed by a success or failure message. Once deployment is complete, the container will be started and will show on the Containers list in the Containers and Container Stacks screen.
On the
Containers
page, you can see a list of icons under Actions like View container logs, Restart, Start, Resume, Pause, Edit, Delete, etc.

Step 3: Verify the container image is running

The container was configured to expose a network port, mapping the container port 80 to port 8089 in the host machine. This means that by accessing localhost:8089, you will be accessing the container ip:80.
Follow the instructions below to verify that the container is running.
In a new browser window, go to
localhost:8089
. If the container is running properly, you will see the index.html for nginx web server.

Product and Performance Information

1

Performance varies by use, configuration and other factors. Learn more at www.Intel.com/PerformanceIndex.