complexorganizations / wireguard-manager

✔️ WireGuard-Manager is an innovative tool designed to streamline the deployment and management of WireGuard VPNs. Emphasizing user-friendliness and security, it simplifies the complexities of VPN configuration, offering a robust yet accessible solution for both personal and professional use.
Other
1.69k stars 209 forks source link

Docker #445

Open Prajwal-Koirala-DEV opened 2 months ago

Prajwal-Koirala-DEV commented 2 months ago

Step 1: Pull the Ubuntu Docker Image

Open your terminal and run:

docker pull ubuntu

Step 2: Run the Container with a Sleep Command

Now, run the container in detached mode (-d) and use a command to keep it alive. We'll use sleep to make it sleep indefinitely:

docker run -d --name my-ubuntu-container ubuntu sleep infinity

Step 3: Access the Running Container

Once the container is running, you can access it using:

docker exec -it my-ubuntu-container bash

Summary of Commands

  1. Pull the Ubuntu image:

    docker pull ubuntu
  2. Run the container with a sleep command:

    docker run -d --name my-ubuntu-container ubuntu sleep infinity
  3. Bash into the running container:

    docker exec -it my-ubuntu-container bash

Optional: Stopping and Removing the Container

That’s it! You should now have a running Ubuntu container that will not crash. Let me know if you have any questions!