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
Open your favorite terminal emulator.
Download the latest
alpine
Docker image from Docker Hub .
orb -m gns3 -u gns3 docker image pull alpine
- 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
Open the GNS3 client application.
Click the Settings button.
Select Docker containers on the left side menu.
Click the New button.
Choose Existing image and select
alpine:latest
from the Image list.
Click the Next button.
Click the Next button using the default
alpine
for the container name.Click the Next button using the default
1
for number of adapters.Click the Next button to use the default Start command of the image.
Click the Next button using the default
telnet
for console type.Click the Finish button as we won’t be setting environment variables.
Click the Edit button.
Enter
A{0}
for the Default name format value.Click the OK button.
Click the Apply button to save the template configuration.
Click the OK button to close the GNS3 Preferences window.
Happy Labbing!