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>
Run kibana
Run kibana on http://localhost:5601 and connect to an elastic search instance running locally on port 9200, or tunneled from remote server:
docker run --name kib-01 -e ELASTICSEARCH_HOSTS=http://localhost:9200 --rm --network host -p 5601:5601 docker.elastic.co/kibana/kibana:7.10.0
wiki/docker_commands.1654076102.txt.gz · Last modified: 2022/06/01 09:35 by antisa