Close
AlgoliaLogoLight
Close full mode
logo

Docker container

Git RepositoryEdit on Github

Tips

Your can use container id or container name replace \<container> argument.

To list all containers

docker container ls or docker ps

To remove a container

docker rm <container>

To fetch logs

docker logs <container>

To run a command in a container

docker exec [OPTIONS] <container> command [ARG...]

frequently example:

docker exec -it <container> sh

To start a container

docker start <container>

To stop a container

docker stop <container>

To copy files/folders between a container and a local filesystem

docker cp [OPTIONS] <container>:<src_path> <dest_path>
docker cp [OPTIONS] <src_path> <container>:<dest_path>
Loading comments...