Docker is an open platform for developing, shipping, and running applications. Docker enables you to separate your applications from your infrastructure so you can deliver software quickly.
The new Compose V2, which supports the compose
command as part of the Docker CLI, is now available.
Compose V2 integrates compose functions into the Docker platform, continuing to support most of the previous docker-compose
features and flags. You can run Compose V2 by replacing the hyphen (-
) with a space, using docker compose
, instead of docker-compose
.
Command line
docker pull <image-name>
docker run -it -d <image-name>
docker ps
docker ps -a
docker exec -it <container-id> bash
docker stop
docker kill
docker login
docker compose --help