Skip to content

BenjaminBurton/GNS3-M1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 

Repository files navigation

GNS3-Server on M1 Mac using a Docker Container

Start by creating a Dockerfile (NO FILE EXTENSION) in directory of your choice

Open the Dockerfile in editor ( I use Nano )

Define the Docker Image Base

FROM ubuntu:latest

Install Dependencies

RUN apt-get update && apt-get install -y python3 python3-pip

Install GNS3 Server

RUN pip3 install gns3-server

Expose Ports (Optional)

EXPOSE 3080

Start GNS3 Server

CMD ["gns3server"]

Complete Code in Dockerfile

FROM ubuntu:latest
RUN apt-get update && apt-get install -y python3 python3-pip
RUN pip3 install gns3-server
EXPOSE 3080
CMD ["gns3server"]

Build the Docker Image

docker build -t gns3-server-image .

Run the Docker Container

This command will start the Docker container

docker run -d --name gns3-server-container -p 3080:3080 gns3-server-image

Inside the Docker container's shell, install Dynamips by running

apt-get update
apt-get install dynamips

update the package lists inside the Docker container by running the following command

apt-get update

Install the necessary build tools and dependencies by running the following command

apt-get install build-essential git libelf-dev libpcap-dev

Clone the uBridge repository

git clone https://github.com/GNS3/ubridge.git

Change to the uBridge directory

cd ubridge

Build uBridge by running

make

Install uBridge by running

make install

Once the installation is complete, exit the container's shell

exit

you should have the GNS3 server running inside a Docker container now. Access the GNS3 web interface by visiting http://localhost:3080 in your web browser.

About

GNS3 Server M1 Mac using Docker Container

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published