An open API service indexing awesome lists of open source software.

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

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 .`