{"id":18762686,"url":"https://github.com/vinodnextcoder/docker_nodejs_app","last_synced_at":"2025-09-01T17:31:22.308Z","repository":{"id":103150125,"uuid":"317630262","full_name":"vinodnextcoder/docker_nodejs_app","owner":"vinodnextcoder","description":"Example of a dockerized Node.js application","archived":false,"fork":false,"pushed_at":"2023-07-21T06:03:21.000Z","size":172,"stargazers_count":0,"open_issues_count":0,"forks_count":15,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-02T21:42:24.235Z","etag":null,"topics":["docker","docker-container","docker-image","dockerfile-examples","express","express-docker","nodejs-docker","nodejs-docker-deployment","nodejs-express-docker","simple-docker-server"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vinodnextcoder.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-12-01T18:21:22.000Z","updated_at":"2023-04-02T15:22:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"90c2cbe2-45b4-413a-8e32-712a83e3025b","html_url":"https://github.com/vinodnextcoder/docker_nodejs_app","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/vinodnextcoder/docker_nodejs_app","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vinodnextcoder%2Fdocker_nodejs_app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vinodnextcoder%2Fdocker_nodejs_app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vinodnextcoder%2Fdocker_nodejs_app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vinodnextcoder%2Fdocker_nodejs_app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vinodnextcoder","download_url":"https://codeload.github.com/vinodnextcoder/docker_nodejs_app/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vinodnextcoder%2Fdocker_nodejs_app/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273162215,"owners_count":25056426,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-01T02:00:09.058Z","response_time":120,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","docker-container","docker-image","dockerfile-examples","express","express-docker","nodejs-docker","nodejs-docker-deployment","nodejs-express-docker","simple-docker-server"],"created_at":"2024-11-07T18:22:45.792Z","updated_at":"2025-09-01T17:31:22.296Z","avatar_url":"https://github.com/vinodnextcoder.png","language":"JavaScript","readme":"\n# Nodejs app Docker example\n\nA Simple nodejs app using docker\n\n\n## Authors\n\n- [@vinodnextcoder](https://www.github.com/vinodnextcoder)\n\n\n## Docker Deployment steps\n\n- Building your image\n\nGo to the directory that has your Dockerfile and run the following command to build the Docker image. The -t flag lets you tag your image so it's easier to find later using the docker images command:\n\n```bash\n  docker build . -t node-web-app\n```\n![Docker app run](./build.png)\n\n- Your image will now be listed by Docker:\n\n```bash\n  docker images\n```\n\n![Docker app run](./dockerIm.png)\n\n- Run the image\nRunning your image with -d runs the container in detached mode, leaving the container running in the background. The -p flag redirects a public port to a private port inside the container. Run the image you previously built:\n\n```bash\n  docker run -p 3000:3000 -d node-web-app\n```\n\n- Get container ID\n```bash\n  docker ps\n```\n\n- Print app output\n```bash\n  docker logs \u003ccontainer id\u003e\n```\n\n![Docker app run](./run.png)\n\n## Tech Stack\n\n**Server:** Node, Express, Docker\n\nHit api \"http://localhost:3000\n\n## Extensive list of Docker commands with their uses:\n\n1. `docker run`: Create and start a new container from a Docker image.\n2. `docker build`: Build a Docker image from a Dockerfile.\n3. `docker pull`: Pull a Docker image from a container registry.\n4. `docker push`: Push a Docker image to a container registry.\n5. `docker images`: List all Docker images on your local machine.\n6. `docker ps`: List running containers.\n7. `docker exec`: Execute a command within a running container.\n8. `docker stop`: Stop a running container.\n9. `docker rm`: Remove one or more containers.\n10. `docker rmi`: Remove one or more Docker images.\n11. `docker network create`: Create a new Docker network.\n12. `docker network ls`: List Docker networks.\n13. `docker network inspect`: Display detailed information about a Docker network.\n14. `docker network connect`: Connect a container to a Docker network.\n15. `docker network disconnect`: Disconnect a container from a Docker network.\n16. `docker volume create`: Create a Docker volume.\n17. `docker volume ls`: List Docker volumes.\n18. `docker volume inspect`: Display detailed information about a Docker volume.\n19. `docker volume rm`: Remove a Docker volume.\n20. `docker-compose up`: Start and run a multi-container Docker application defined in a Docker Compose file.\n21. `docker-compose down`: Stop and remove containers, networks, and volumes created by `docker-compose up`.\n22. `docker-compose build`: Build Docker images for services defined in a Docker Compose file.\n23. `docker-compose logs`: View the logs of services running with `docker-compose`.\n24. `docker-compose ps`: List containers created by `docker-compose`.\n25. `docker login`: Log in to a container registry.\n26. `docker logout`: Log out from a container registry.\n27. `docker inspect`: Display detailed information about a Docker object (container, image, volume, etc.).\n28. `docker cp`: Copy files/folders between a container and the host machine.\n29. `docker attach`: Attach to a running container's STDIN, STDOUT, and STDERR.\n30. `docker rename`: Rename a Docker container.\n31. `docker restart`: Restart a Docker container.\n32. `docker pause`: Pause a running container.\n33. `docker unpause`: Unpause a paused container.\n34. `docker top`: Display the running processes of a container.\n35. `docker stats`: Display real-time usage statistics of containers.\n36. `docker events`: Stream real-time events from the Docker server.\n37. `docker port`: List port mappings of a container.\n38. `docker save`: Save a Docker image to a tar archive.\n39. `docker load`: Load a Docker image from a tar archive.\n40. `docker commit`: Create a new image from a container's changes.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvinodnextcoder%2Fdocker_nodejs_app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvinodnextcoder%2Fdocker_nodejs_app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvinodnextcoder%2Fdocker_nodejs_app/lists"}