From time to time appears requests for using VyOS inside Docker containers. Of course, such a use case has a lot of limitations, drawbacks, and potential issues for other network-related services in a host. But, from the other side - adapting VyOS to Docker (with some limitations, of course) is possible, so nothing stops us to provide container support for testing.
- Difficulty level
- Unknown (require assessment)
- Why the issue appeared?
- Will be filled on close
- Is it a breaking change?
- Unspecified (possibly destroys the router)
- Issue type
- Feature (new functionality)
Works, tested with this steps https://docs.vyos.io/en/latest/installation/virtual/docker.html
root@r14:/home/vyos# podman ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES d49f99e058d7 localhost/vyos:1.3-stable-202308240442 /sbin/init About a minute ago Up About a minute ago vyos root@r14:/home/vyos# root@r14:/home/vyos# root@r14:/home/vyos# sudo podman exec -ti vyos su - vyos vyos@vyos:~$ vyos@vyos:~$ vyos@vyos:~$ show version Version: VyOS 1.3-stable-202308240442 Release train: equuleus Built by: [email protected] Built on: Thu 24 Aug 2023 04:42 UTC Build UUID: d21eb0cb-8123-4556-a1ab-95182c641b98 Build commit ID: 42535513ff2c9a Architecture: x86_64 Boot via: installed image System type: KVM guest Hardware vendor: QEMU Hardware model: Standard PC (Q35 + ICH9, 2009) Hardware S/N: Hardware UUID: 166cfd25-7d3a-4eca-9ef6-0b655c9acf0f Copyright: VyOS maintainers and contributors vyos@vyos:~$