436 B
436 B
Docker
Interactive
-
Login into container
docker exec -it <containerName> <shell>
-
Run script within a container
docker exec -i <containerName> bash < <scriptPath>
-
Update all images:
docker images | grep -v REPOSITORY | awk '{print $1}'| xargs -L1 docker pull
Networking
Access Hosts
- Add
- Connect to hosts's localhost using:
172.17.0.1
Intercontainer Communication
- use docker name inside container