Giter Club home page Giter Club logo

gns3-m1's Introduction

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.