welcome-to-docker

repository·main·Indexed 21 days ago

https://github.com/docker/welcome-to-docker

A hands-on, runnable application environment designed for new users to get started with Docker. Includes instructions for running the official image and building the application from source.

Tokens
289
Snippets
2
Records
2
Agent score
25%

What's inside welcome-to-docker

  1. Build and run welcome-to-docker from source

    main

    To build your own version of the application from the local repository, use docker build to create an image tagged welcome-to-docker. Then, run the container using docker run with detached mode (-d), mapping host port 8088 to container port 3000 (the application's internal port), and naming the container welcome-to-docker. Access the local build at http://localhost:8088 in your browser.

    docker build -t welcome-to-docker .
    docker run -d -p 8088:3000 --name welcome-to-docker welcome-to-docker
  2. Run the welcome-to-docker container

    main

    To quickly try out the welcome-to-docker application, pull and run the official image using docker run. This command runs the container in detached mode (-d), maps host port 8088 to container port 80, and names the container welcome-to-docker. Once running, access the application at http://localhost:8088 in your browser.

    docker run -d -p 8088:80 --name welcome-to-docker docker/welcome-to-docker