A dockerfile for gns3-server, can run gns3 with remote-server mode. You can deploy it on wsl
or vps
.
What is the different between local-server, vm (vmware or others) and remote-server?
gns3-all-in-one.exe
is just a client gui installergns3-server.exe
will start on you local OSgns3
will use call hyperviser
to open vm, and you can simple regard vm as a ubuntu
images with running gns3-server
First of all, you need to build a gns3-server
image,the dockerfile is provided in /asset
folder.
There are two ways to build it
#first way
git clone https://github.com/iamNCJ/gns3-docker
cd /assets
# -t set a tag for later to distinguish
# -f use the specified dockerfile
docker build . -t gns3-server:2.2.25 -f gns.Dockerfile
If the first way you meet some weird errors, you can use aliyun ACR
first create a repo at code.aliyun.com,just put a Dockerfile
file at the root pos with the contents same as gns.Dockerfile
go to here,click 创建镜像仓库, and choose the source code register with 云code,then set
then click
after build success, you can use this to pull the images
docker pull registry.cn-hangzhou.aliyuncs.com/****/gns3_server:[镜像版本号]
use docker images
to check whether build success!
Second, you need edit the Dockerfile
cd /path/to/gns3-docker
vim docker-compose.yaml
##change the
gns3-server:
image: registry.cn-shanghai.aliyuncs.com/ncj/gns3:2.2.17
## to
gns3-server:
image: #the tag you build at the first step! maybe gns3-server:2.2.25 or registry.cn-shanghai.aliyuncs.com/****/****:0.0.1
then just use follow command to start it!
docker-compose up -d
3080
port( if you don't change it )localhost:3080
to check whether deply success,otherwise you need to visit http://ip:3080
to check此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。