Most GNS3 users are familiar with VPCS . It’s the go-to device for simulating a simple endpoint node in our network labs. VPCS is suitable for the basics, but Docker supplies a selection of more feature-rich endpoint types. This post provides an example using Alpine Linux .

Prerequisites

Steps

  1. Open your favorite terminal emulator.

  2. Download the latest alpine Docker image from Docker Hub .

orb -m gns3 -u gns3 docker image pull alpine
  1. Verify the Docker image is available.
orb -m gns3 -u gns3 docker image ls

output:

REPOSITORY   TAG       IMAGE ID       CREATED        SIZE
alpine       latest    91ef0af61f39   2 months ago   7.8MB

Optionally, we can also display the architecture for the image.

orb -m gns3 -u gns3 docker inspect alpine -f '{{.Architecture}}'

output:

amd64
  1. Open the GNS3 client application.

  2. Click the Settings button.

  3. Select Docker containers on the left side menu.

  4. Click the New button.

  5. Choose Existing image and select alpine:latest from the Image list.

Create Docker template
  1. Click the Next button.

  2. Click the Next button using the default alpine for the container name.

  3. Click the Next button using the default 1 for number of adapters.

  4. Click the Next button to use the default Start command of the image.

  5. Click the Next button using the default telnet for console type.

  6. Click the Finish button as we won’t be setting environment variables.

  7. Click the Edit button.

  8. Enter A{0} for the Default name format value.

  9. Click the OK button.

  10. Click the Apply button to save the template configuration.

Docker container template
  1. Click the OK button to close the GNS3 Preferences window.

  2. Happy Labbing!

Alpine network information