https://github.com/suryakarmakar/docker
https://github.com/suryakarmakar/docker
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/suryakarmakar/docker
- Owner: SuryaKarmakar
- License: mit
- Created: 2024-09-17T17:57:19.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-09-17T18:15:20.000Z (about 1 year ago)
- Last Synced: 2025-01-14T13:16:10.771Z (9 months ago)
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Docker
- create container:
docker create container create container but not start them.
```
docker container create
docker container create hello-world
```- to see list of active container running:
```
docker ps
```- to see all created container list:
```
docker ps --all
```- to start container:
```
docker container start
docker container start 990f0ee6c080a48b0190268541913ca8e72f3f3fb9b302a425edefc999e22474docker container start --attach 990f0ee6c080a48b0190268541913ca8e72f3f3fb9b302a425edefc999e22474
```- another way to create and start container:
docker run create container then start container and add the --attach to get proper success msg.
```
docker run hello-world
```