Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/containers/podman-machine-cni
https://github.com/containers/podman-machine-cni
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/containers/podman-machine-cni
- Owner: containers
- Archived: true
- Created: 2021-05-20T14:05:19.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-11-16T15:41:36.000Z (almost 2 years ago)
- Last Synced: 2024-07-09T00:10:23.078Z (4 months ago)
- Language: Go
- Size: 2.74 MB
- Stars: 6
- Watchers: 6
- Forks: 10
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Code of conduct: CODE-OF-CONDUCT.md
- Security: SECURITY.md
Awesome Lists containing this project
README
# Deprecated
This repository is no longer maintained. The core logic has been merged into [podman as of v4.0](https://github.com/containers/podman/pull/12283).
# podman-machine-cni
This plugin collects the port information of the container and sends information to a server on the host
operating system. The information is used by the server to open and close port mappings on the host. It
is only meant to be used in a podman-machine virtual machine. The plugin can
be enabled with the following stanza:```
{
"type": "podman-machine",
"capabilities": {
"portMappings": true
}
},```
The server in question is gvisor-tap-vsock. The plugin connects to the server via RESTful API calls on
container start and stop (or die). The plugin converts the port data information into a JSON payload
for the API endpoint. On container start, ports on the host are opened and mapped; on stop, they are closed.