User Tools

Site Tools


wiki:docker_commands

This is an old revision of the document!


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/

wiki/docker_commands.1607939426.txt.gz · Last modified: 2020/12/14 10:50 by antisa

Except where otherwise noted, content on this wiki is licensed under the following license: CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki