-
Install docker-machine
-
Install docker-compose
# Before VPN
alias dc=docker-compose
alias dm=docker-machine
# Optional: use options --virtualbox-cpu-count "4" --virtualbox-memory "4096"
//xs:element[starts-with(@type, 'xs:')]/@name | |
| //xs:simpleType[ | |
xs:restriction[not(xs:length) and | |
not(xs:minInclusive and xs:maxInclusive) and | |
not(xs:maxLength) and not(xs:enumeration) and | |
not(starts-with(@base, 'xs:dateTime')) and | |
not(xs:pattern[not(empty(@value))])] | |
]/@name |
{ | |
"settings" : { | |
"analysis" : { | |
"analyzer" : { | |
"default" : { | |
"tokenizer" : "whitespace", | |
"filter" : [ "thesaurus_synonyms", "lowercase", "snow_en" ] | |
}, | |
"make_analyzer" : { | |
"tokenizer" : "whitespace", |
To remove all containers and images: | |
#!/bin/bash | |
# Delete all containers | |
docker rm $(docker ps -a -q) | |
# Delete all images | |
docker rmi $(docker images -q) |
Install docker-machine
Install docker-compose
# Before VPN
alias dc=docker-compose
alias dm=docker-machine
# Optional: use options --virtualbox-cpu-count "4" --virtualbox-memory "4096"
Note: replace {{server}} with your domain or ip
ssh -i key.pem ec2-user@{{server}}
sudo -i
Enable port forwarding on VirtualBox Machine from 2376 on host to 2376 on guest (Settings > Network > Adapter 1 NAT > Advanced > Port Forwarding), and then export the following in a shell. Docker Compose and other docker tools will work as expected.
export DOCKER_TLS_VERIFY="1"
export DOCKER_HOST="tcp://localhost:2376"
For docker-machine users: