---
# System prepended metadata

title: Docker with network

---

# Docker with network

## Recently Command
* List all docker images
`docker images`
* List all docker containers
`docker ps -a`
* List all the dockers tht are online
`docker ps`
* Delete an image
`docker rmi ${image name}/${image id}`
* Delete a container
`docker rm ${container name}`
* Create a docker container with network
`docker run -p 8080:8080 -it ${image name}`
:warning: 跟tag --net="host/etc...", port宣告無效

## Dockerfile

```
FROM python:2.7.14
MAINTAINER Charlotte
EXPOSE 8080
```
