wiki:docker_commands
This is an old revision of the document!
Table of Contents
Docker commands
Run bash inside container
docker exec -it <container> /bin/bash
Copy file from host to container
docker cp <localfile> <container>:<container_path>
e.g. docker cp LocalSettings.php my-mediawiki:/var/www/html/
Get container IP
docker inspect -f '{{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}}' <container-name>
wiki/docker_commands.1614678516.txt.gz · Last modified: 2021/03/02 09:48 by antisa