https://github.com/kaplanmaxe/docker-cheatsheet
Personal cheatsheet to docker
https://github.com/kaplanmaxe/docker-cheatsheet
Last synced: 3 months ago
JSON representation
Personal cheatsheet to docker
- Host: GitHub
- URL: https://github.com/kaplanmaxe/docker-cheatsheet
- Owner: kaplanmaxe
- Created: 2017-03-01T04:24:32.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-03-01T04:25:13.000Z (over 9 years ago)
- Last Synced: 2025-01-13T20:47:37.543Z (over 1 year ago)
- Size: 0 Bytes
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Docker Cheat Sheet
##### Start new docker container:
`docker run -ti ubuntu bash`
##### Find all containers:
`docker ps`
##### Find last exited container
`docker ps -l`
##### Convert container to image
`docker commit `
##### "SSH" into container
`docker exec -ti bash`
##### Run image and open bash
`docker run -ti bash`
TO KEEP RUNNING
`docker run -d -ti bash`
##### View container logs
`docker logs `
##### Build from docker file
`docker build -t .`