Last active
September 18, 2017 16:12
-
-
Save mantyr/4f12e7546dd2df039ecac0cc8106efcf to your computer and use it in GitHub Desktop.
Docker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
eval $(minikube docker-env) | |
alias get-images="curl -k -s https://example.com/images | jq -r '.repositories[]'" | |
alias get-images-tags="curl -k -s https://example.com/images | jq -r '.repositories[]' | xargs -I{} curl -k -s https://example.com/get/{}/tags/list | jq -r '"\(.name): \(.tags | sort | reverse | join(", "))"' | awk 'BEGIN{FS=":"} {printf("%-35s %s\n", $1, $2)}' | |
когда нужно несколько локальный ip на макет в дополнении к первому | |
sudo ifconfig lo0 alias 127.0.0.2 up | |
sudo ifconfig lo0 alias 127.0.0.3 up | |
sudo ifconfig lo0 alias 127.0.0.4 up | |
sudo ifconfig lo0 alias 127.0.0.5 up | |
что бы попасть из docker на хост систему достаточно прокинуть localhost к фиксированному адресу внутри докера, ifconfig его не увидит, но трафик пройдёт:) | |
--add-host="localhost:192.168.65.1" | |
docker run -d -t --name=fs -v "/Users/mantyr/cluster/freeswitch/etc/freeswitch:/etc/freeswitch" -p 5066:5066 -p 5080:5080 -p 5060:5060 --add-host="localhost:192.168.65.1" freeswitch:latest /bin/bash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment