docker stop -p 8080:8080 -d --env-file docker.env pcre-id:latest
docker stop 12d000d946a0
docker run --name :latest
docker tag /:tag
docker push /
docker commit
docker history
docker inspect : Return low-level information on Docker objects
docker logs
docker diff : Inspect changes to files or directories on a container’s filesystem
docker rm
removing dangling images and containers
docker rm $(docker ps -a -f status=exited -q) : to remove the containers which are unused
docker login --u yourhubusername
docker tag yourhubusername/verse_gapminder:firsttry
Lifecycle
docker createcreates a container but does not start it.docker renameallows the container to be renamed.docker runcreates and starts a container in one operation.- docker container ls [OPTIONS]
docker rmdeletes a container.docker updateupdates a container's resource limits.
Starting and Stopping
docker startstarts a container so it is running.docker stopstops a running container.docker restartstops and starts a container.docker pausepauses a running container, "freezing" it in place.docker unpausewill unpause a running container.docker waitblocks until running container stops.docker killsends a SIGKILL to a running container.docker attachwill connect to a running container.
Info
docker psshows running containers.docker logsgets logs from container. (You can use a custom log driver, but logs is only available forjson-fileandjournaldin 1.10).docker inspectlooks at all the info on a container (including IP address).docker eventsgets events from container.docker portshows public facing port of container.docker topshows running processes in container.docker statsshows containers' resource usage statistics.docker diffshows changed files in the container's FS.
docker ps -a shows running and stopped containers.docker stats --all shows a running list of containers.Import / Export
docker cpcopies files or folders between a container and the local filesystem.docker cp 7e5c370eef0c:/usr/bin/AffyAnalysis/R_Workspaces/affy /Users/narendra.raghuwanshi/Documents/affynew
docker run -it --name affyfine f7c545621aa1 /usr/bin/bash
cd /Users/narendra.raghuwanshi/Documents/affynew
docker cp ./affy affyfine:/
docker start affyfine
docker exec -it affyfine /usr/bin/bash- ( docker cp
:/file/path/within/container /host/path/target)
docker cp /Users/narendra.raghuwanshi/Documents/affynew/ 661eb7a0df74:/temp
cp /Users/narendra.raghuwanshi/Documents/TFScode/Rcode/NewR/affy_headmaster.R 2591e5d2023c:/. (for directory)

FROM container to container

First of all, copy file to some temporary directory on the host Next, transfer it from the temp directory to the other container:
docker exportturns container filesystem into tarball archive stream to STDOUT.
Lifecycle
docker imagesshows all images.docker importcreates an image from a tarball.docker buildcreates image from Dockerfile.docker commitcreates image from a container, pausing it temporarily if it is running.(alway give alias name to ur commit )
docker rmiremoves an image.docker loadloads an image from a tar archive as STDIN, including images and tags (as of 0.7).docker savesaves an image to a tar archive stream to STDOUT with all parent layers, tags & versions (as of 0.7).
Info
docker historyshows history of image.docker tagtags an image to a name (local or registry).docker loginto login to a registry.docker logoutto logout from a registry.docker searchsearches registry for image.docker pullpulls an image from registry to local machine.docker pushpushes an image to the registry from local machine.
where everything stored in our Machine.



