You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now I have an app container, and I want to switch between 2 VPN after starting it. For example, I start my app container with blue_vpn by option: --network=container:blue_vpn:
docker run --name=app_container -t -d --cap-add=NET_ADMIN --network=container:blue_vpn debian:bullseye
After one day, now I need to switch my app_container to green_vpn without restart or stop/delete current app_container. Stopping or re-redeploying my app may interrupt processing.
I have tried to find on stackoverflow, docker forum but nothing help. Can we have any solution? Please help
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have created 2 vpn container:
blue_vpn
andgreen_vpn
with 2 open vpn config file on same server:Now I have an app container, and I want to switch between 2 VPN after starting it. For example, I start my app container with
blue_vpn
by option:--network=container:blue_vpn
:After one day, now I need to switch my
app_container
togreen_vpn
without restart or stop/delete currentapp_container
. Stopping or re-redeploying my app may interrupt processing.I have tried to find on stackoverflow, docker forum but nothing help. Can we have any solution? Please help
Beta Was this translation helpful? Give feedback.
All reactions