Basic Docker Commands

Show the current version of docker that you are running: docker -version [OPTIONS] Pull an image from a repository: docker pull [OPTIONS] NAME[: TAG|@DIGEST] Create a container based on the specified image: docker run [OPTIONS] IMAGE [COMMAND] [ARG...] List all of your current containers: docker ps [OPTIONS] Run a command in a currently running container: docker exec [OPTIONS] CONTAINER COMMAND [ARG...] Start a stopped container: docker start [OPTIONS] CONTAINER [CONTAINER...] Stop a running container:...

May 3, 2024 · 1 min · 104 words