summaryrefslogtreecommitdiff
path: root/podman_launch_devenv.py
diff options
context:
space:
mode:
authorhc <hc@email.ch>2025-05-30 23:07:58 +0800
committerhc <hc@email.ch>2025-05-30 23:07:58 +0800
commit3a824121c7338ec395cf027156ea83f29fe1e6a4 (patch)
tree9a86e70487b58d2958ff94dda9771709fd55b2f5 /podman_launch_devenv.py
parent1de3097b9e7ac4c37734e1d6fbefeb46f7826e43 (diff)
updatedstuff
Diffstat (limited to 'podman_launch_devenv.py')
-rwxr-xr-xpodman_launch_devenv.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/podman_launch_devenv.py b/podman_launch_devenv.py
index 8896c02..2473404 100755
--- a/podman_launch_devenv.py
+++ b/podman_launch_devenv.py
@@ -26,6 +26,8 @@ def launch():
if result.returncode == 0:
ip = run("hostname -I | awk '{print $1}'").stdout.strip() or "localhost"
print(f"🐳 SSH: ssh root@{ip} -p {port}")
+ print(f"🐚 Shell: podman exec -it rocky_dev-{port} /bin/bash")
+ print(f"💡 Tip: For direct shell without port forwarding, use: podman run -it rocky_dev:latest /bin/bash")
return result.returncode == 0
parser = argparse.ArgumentParser(epilog="""
@@ -47,3 +49,5 @@ elif args.command == "run":
print("❌ Image rocky_dev:latest not found")
else:
print("Usage: python3 launcher.py {run|list|cleanup} [-p PORT]")
+ print("🐚 Shell: podman exec -it rocky_dev-<port> /bin/bash")
+ print("💡 Tip: For direct shell without port forwarding, use: podman run -it rocky_dev:latest /bin/bash")