Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spinning up containers with a dockerized server #2444

Closed
miromeir opened this issue Nov 10, 2024 · 3 comments
Closed

Spinning up containers with a dockerized server #2444

miromeir opened this issue Nov 10, 2024 · 3 comments

Comments

@miromeir
Copy link

Hello,
I'm using the Dockerfile provided in this project to create a container of gns3-server.
I also need docker containers in my gns3 project.
It's possible if you share "/var/run/docker.sock" with the host, allowing gns3 to control the host docker daemon.
It works, but when trying to start a container i'm getting the following error:

gns3server.compute.docker.docker_error.DockerError: Docker has returned an error: 500 b'Mounts denied: \nThe path /root/.local/share/GNS3/docker is not shared from the host and is not known to Docker.\nYou can configure shared paths from Docker -> Preferences... -> Resources -> File Sharing.\nSee https://docs.docker.com/ for more info.\n'

I'm not sure what to map. My docker host is non-root so that folder doesn't exist.
Even when i map the user's relevant folder to "/root/.local/share....." i'm still getting this error.

Where to proceed from here?

@grossmj
Copy link
Member

grossmj commented Nov 26, 2024

Why do you want to run the GNS3 server as a Docker container?

@grossmj grossmj closed this as not planned Won't fix, can't repro, duplicate, stale Nov 28, 2024
@miromeir
Copy link
Author

Apologize for not responding, this was eventually forsaken.
But. to answer the question, we have a few complex gns3 topologies that are being used by multiple students.
The idea was to pack everything into a docker container to speed up the process of spinning up the scenarios on the students devices. another scenario - say you wanted to run gns3 as a service on a cloud, using docker would also make sense.
@grossmj

@grossmj
Copy link
Member

grossmj commented Dec 25, 2024

No worries.

Here is an example how to run the GNS3 server in Docker: https://github.com/GNS3/gns3-server/blob/master/scripts%2Fdocker_dev_server.sh

Let me know if you need more help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants