-
Notifications
You must be signed in to change notification settings - Fork 5
docker cheatsheet
nupthale edited this page May 8, 2019
·
9 revisions
$ docker create -it --name rde-dummy ${imageName} bash
$ docker cp rde-dummy:/usr/rde/${somePath} ${someLocalPath}
$ docker rm -fv rde-dummy
// add multiple tag, remember to add latest each time
$ docker tag ${imageId} ${remoteContainerName}:${semverTag}
$ docker tag ${imageId} ${remoteContainerName}:latest
$ docker push ${remoteContainerName}
$ docker-compose run --rm ${service} ${command}
https://github.com/wagoodman/dive
dive <your-image-tag>
dive build -t <some-tag> .
docker run --rm -it --entrypoint=/bin/bash name-of-image
docker exec -it name-of-container bash
kill all running containers with $ docker kill $(docker ps -q)
delete all stopped containers with $ docker rm $(docker ps -a -q)
delete all images with $ docker rmi $(docker images -q)