summaryrefslogtreecommitdiffstats
path: root/docs/web/docker.txt
blob: 992b5b3664b22c86af219b9a829ad642fe86d200 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# TODO: This whole doc

docker run -p host:container
        Run container with port forwarding

docker run --rm -d --network host --name <something> <image-id>
        --rm        Destroy container on exit
        -d          Run detached (don't hijack terminal)
        --net...    Use host's network (don't need port forward)

docker exec -it
        Get a shell in container


I'm told docker-compose is just much simpler, try to use if possible.