https://github.com/msk4862/docker-intro
This is a simple nodeJs project to learn working of Docker containers.
https://github.com/msk4862/docker-intro
docker docker-turorial nodejs-docker
Last synced: 2 months ago
JSON representation
This is a simple nodeJs project to learn working of Docker containers.
- Host: GitHub
- URL: https://github.com/msk4862/docker-intro
- Owner: msk4862
- Created: 2020-04-06T10:03:51.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-12T09:55:20.000Z (over 2 years ago)
- Last Synced: 2025-01-24T18:29:18.601Z (4 months ago)
- Topics: docker, docker-turorial, nodejs-docker
- Language: JavaScript
- Homepage:
- Size: 25.4 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Docker-Introduction
This is a simple nodeJs project to learn working of Docker containers.> ### To learn more about docker conatiners you can have a look at this [course](https://btholt.github.io/complete-intro-to-containers/).
## Some docker basic commands
* To show running containers
> `docker ps`
* To downoad any image from [docker hub](https://hub.docker.com/)
> `docker pull `
* Run docker image/container (`-it` flag is for interactive shell)
> `docker run -it `
* To run a specific file in that container
> `docker run -it `
* To build conatiner
> `docker build -t `
* To build conatiner
> `docker build -t `
* To view info about your container
> `docker inspect `
* To expose port while running
> docker run --publish
* To delete docker container
> `docker rm `
* To kill a running container
> `docker kill `
* To view logs
> `docker logs `