Navigating Docker Commands
Docker offers a variety of commands, and executing 'docker' in the terminal reveals the comprehensive list. Here's an overview of some key commands:
attach
: Connect to a running container.build
: Construct an image from a Dockerfile.commit
: Generate a new image from changes in a container.cp
: Copy files/folders from a container to a HOSTDIR or STDOUT.create
: Establish a new container.diff
: Examine changes in a container's filesystem.events
: Obtain real-time events from the server.exec
: Execute a command in a running container.export
: Export a container's filesystem as a tar archive.history
: Display the history of an image.images
: List available images.import
: Incorporate contents from a tarball to create a filesystem image.info
: Present system-wide information.inspect
: Retrieve low-level details on a container or image.kill
: Terminate a running container.load
: Load an image from a tar archive or STDIN.login
: Register or log in to a Docker registry.logout
: Log out from a Docker registry.