sdk-docker automated

medium

Image Types:
basesdk-amd64 / sdk-amd64
Image Deployment:
APT
Type:
functional

Description

Install and run hello-world docker container.


Pre Conditions

  1. Clone the tests repository from another computer (Note that the branch being tested may change depending on the release, please make sure to clone the correct branch for the release in question):
  2. $ git clone --branch apertis/v2025dev3 https://gitlab.apertis.org/tests/docker-test.git
  3. Copy the test directory docker-test to the target device:
  4. $ DUT_IP=<device-ip>
    $ scp -r docker-test user@$DUT_IP:
  5. Log into the target device:
  6. $ ssh user@$DUT_IP

Execution Steps

  1. Enter test directory:
  2. $ cd docker-test
  3. Execute the following command:
  4. $ common/run-test-in-systemd --user=user --basename -- ./test-docker.sh

Expected

If PASSED is displayed, the test have passed. The output should be similar to that:

Unable to find image 'hello-world:latest' locally

 latest: Pulling from library/hello-world

 b8dfde127a29: Pulling fs layer

 b8dfde127a29: Verifying Checksum

 b8dfde127a29: Download complete

 b8dfde127a29: Pull complete

 Digest: sha256:df5f5184104426b65967e016ff2ac0bfcd44ad7899ca3bbcf8e44e4461491a9e

 Status: Downloaded newer image for hello-world:latest

 Hello from Docker!

 This message shows that your installation appears to be working correctly.

 To generate this message, Docker took the following steps:

 1. The Docker client contacted the Docker daemon.

 2. The Docker daemon pulled the "hello-world" image from the Docker Hub.

     (amd64)

 3. The Docker daemon created a new container from that image which runs the

     executable that produces the output you are currently reading.

 4. The Docker daemon streamed that output to the Docker client, which sent it

     to your terminal.

 To try something more ambitious, you can run an Ubuntu container with:

 $ docker run -it ubuntu bash

 Share images, automate workflows, and more with a free Docker ID:

 https://hub.docker.com/

 For more examples and ideas, visit:

 https://docs.docker.com/get-started/

 sdk-docker-test: PASSED

 real	0m 3.90s

 user	0m 0.00s

 sys	0m 0.00s

 test-docker: test succeeded