[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Docker like networking
From: |
shadowbladeee |
Subject: |
Docker like networking |
Date: |
Tue, 27 Feb 2024 21:23:58 +0000 |
Hello List,
I don't want to mix Docker and KVM host, prefer running just one.
Is it possible to do something like the "host network" with KVM:
docker run -it --name samba \
--hostname="samba" \
-v /etc/localtime:/etc/localtime:ro \
-v /etc/samba:/etc/samba \
-v /var/log/samba:/var/log/samba \
--network host \
--restart="always" \
--detach=true \
-d samba:v0.1 "/entrypoint.sh"
In this mode everything inside the guest uses the hosts network stack so you
start a tool like samba it will bind on the normal hosts ip, the container
doesn't have interface or own ip.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Docker like networking,
shadowbladeee <=