Post date: Apr 21, 2018 11:5:25 PM
docker create --name <NAME> <Template>
create a new container
Options:
-v <host directory>:<container directory>
-e PGID=<gid> -e PUID=<uid>
-e TZ=<TimeZone>
-p <host port>:<container port>
docker start
run the container
docker stop
stop the container
docker rm
delete the container
docker rmi
delete the downloaded image
docker exec -it <NAME> /bin/bash
start a shell in the container
docker logs -f <NAME>
get logs from the container
docker update <NAME> --restart=always
Change config to always restart
Container information is stored under:
/var/lib/docker/containers/XXX