Category: Network and IT System

  • How to build a Dockerfile on Windows 10?

    Building a Dockerfile on Windows 11 is a common workflow for containerized development. Here’s how you can do it—step by step:


    1. Install Docker Desktop for Windows

    • Go to the Docker Desktop download page.
    • Download the Windows installer and run it.
    • Follow the prompts (ensure “WSL2” support is selected, if available).
    • NOTE: Windows 11 works best with WSL2.

    2. Write Your Dockerfile

    • Use a code editor (e.g., VS Code, Notepad++).
    • Save your Dockerfile as simply named: Dockerfile (no extension).
    • Example (Python app):
    FROM python:3.11-slim
    WORKDIR /app
    COPY . .
    RUN pip install -r requirements.txt
    CMD ["python", "app.py"]

    3. Open a Terminal

    • On Windows, you can use:
    • Windows Terminal (wt command)
    • Command Prompt (cmd)
    • PowerShell
    • WSL2 Terminal (Recommended)

    4. Navigate to the Dockerfile Location

    Use the cd command to go to your project directory:

    cd path\to\your\project

    5. Build the Docker Image

    Use the docker build command. For example:

    docker build -t my-app:latest .
    • -t my-app:latest gives your image a name and tag (latest).
    • The final . means “use the Dockerfile in the current directory”.

    6. Run the Docker Container (Optional)

    Test your image:

    docker run --rm -it my-app:latest

    7. Troubleshooting

    • If Docker commands aren’t recognized, make sure Docker Desktop is running.
    • Check Windows Terminal settings if using WSL2, and ensure file sharing is set up for your code folders.

    Summary Table

    StepCommand/Action
    Install DockerDownload & install Docker Desktop
    Write DockerfileUse text editor, save as Dockerfile
    Open TerminalPowerShell, CMD, WSL or Windows Terminal
    Go to directorycd path\to\project
    Build imagedocker build -t my-app:latest .
    Run containerdocker run --rm -it my-app:latest

    Tip: You can use Docker Desktop’s GUI to see your images and containers as well!

  • Upgrading PC for My boss

    I upgraded his PC, Graphic Card, Power Supply, RAM, WiFi6 Network Card to improve speed and stabilized his golf game.

  • It’s finally working again. The new feature rustdesk privacy mode is really cool!

    This is most important for me to work on troubleshooting with PC Sticks. So I don’t want an expose password that i type. This is great.

    I’ve also set up three more rust desk relay servers on my machine so we can connect without any issues between Washington State and Arionza.

    We commenced utilizing rustdesk in August 2023, and their updates have been impeccable. We desire the service we receive, and I am grateful for their dedication to their work. I recommend that you consider purchasing a professional license if you wish to construct your own server.

    https://rustdesk.com/pricing.html

    Check it out and good price!

Secret Link