Docker

docker compose file

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

Ressources

https://docs.docker.com/

https://docs.docker.com/engine/reference/commandline/cli/

https://docs.docker.com/compose/reference/

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.