the general format is
docker exec -it (container) (command)
docker exec -t -i container_name /bin/bash
docker exec -ti container_name /bin/bash
docker exec -ti container_name sh
Use opener (https://github.com/artemkaxboy/docker-opener):
requires to add alias in your environment opener wordpress
works anywhere docker run --rm -it -v /var/run/docker.sock:/var/run/docker.sock artemkaxboy/opener wordpress
Instead of wordpress you can use name or id or image-name of any container you want to connect
references
No comments:
Post a Comment