Brush name | Brush aliases | File name |
---|---|---|
ActionScript3 | as3, actionscript3 | shBrushAS3.js |
Bash/shell | bash, shell | shBrushBash.js |
ColdFusion | cf, coldfusion | shBrushColdFusion.js |
C# | c-sharp, csharp | shBrushCSharp.js |
C++ | cpp, c | shBrushCpp.js |
CSS | css | shBrushCss.js |
Delphi | delphi, pas, pascal | shBrushDelphi.js |
Diff | diff, patch | shBrushDiff.js |
Erlang | erl, erlang | shBrushErlang.js |
Groovy | groovy | shBrushGroovy.js |
JavaScript | js, jscript, javascript | shBrushJScript.js |
Java | java | shBrushJava.js |
JavaFX | jfx, javafx | shBrushJavaFX.js |
Perl | perl, pl | shBrushPerl.js |
PHP | php | shBrushPhp.js |
Plain Text | plain, text | shBrushPlain.js |
PowerShell | ps, powershell | shBrushPowerShell.js |
Python | py, python | shBrushPython.js |
Ruby | rails, ror, ruby | shBrushRuby.js |
Scala | scala | shBrushScala.js |
SQL | sql | shBrushSql.js |
Visual Basic | vb, vbnet | shBrushVb.js |
XML | xml, xhtml, xslt, html, xhtml | shBrushXml.js |
Day: January 12, 2018
docker-compose prepends current directory name to named volumes
Issues – docker-compose prepends current directory name to named volumes
What actually happens is that the named volume gets prepended with (a simplified version of) the directory name from which the docker-compose command was run.
For instance, if I run from the “dcompos-programs” directory, and I name the volume “my_named_vol”, then I end up with a volume named “dcompos-programs_my_named_vol”.
docker-compose-named-volume.yml:
version: '3' services: solr: image: alpine:3.5 container_name: foo volumes: - my_named_vol:/opt/foo volumes: my_named_vol:
Result:
$ docker-compose -f docker-compose-named-volume.yml up -d && \ > echo "## named volume:" && \ > docker volume ls | grep my_named_vol && \ > echo "## stop" && \ > docker-compose -f docker-compose-named-volume.yml down && \ > echo "## rm volume" && \ > docker volume rm $(docker volume ls | grep my_named_vol | awk '{print $2}') Creating network "deploymentroot_default" with the default driver Creating volume "dcompos-programs_my_named_vol" with default driver Creating foo
Answer
docker-compose uses a project name. By default it’s the directory name which prevents collisions with existing containers. But you can use -p to change the prefix name.
You can use the external volume setting to avoid the prefix.
https://docs.docker.com/compose/compose-file/#external
Kubernetes minikube errors and Solutions
Error 1 – Error starting host: Error getting state for host: machine does not exist
<p style="font-weight: 400;">D:\kubernete>minikube-windows-amd64.exe start --kubernetes-version="v1.8.0" --vm</p> <p style="font-weight: 400;">-driver="virtualbox" --alsologtostderr</p> <p style="font-weight: 400;">W0110 <span data-term="goog_1571914274">12:16:04.517163</span> 10504 root.go:148] Error reading config file at C:\Users</p> <p style="font-weight: 400;">\panan4\.minikube\config\config.json: open C:\Users\panan4\.minikube\config\conf</p> <p style="font-weight: 400;">ig.json: The system cannot find the file specified.</p> <p style="font-weight: 400;">I0110 <span data-term="goog_1571914275">12:16:04.528163</span> 10504 notify.go:109] Checking for updates...</p> <p style="font-weight: 400;">I0110 <span data-term="goog_1571914276">12:16:05.901354</span> 10504 cache_images.go:290] Attempting to cache image: gc</p> <p style="font-weight: 400;"><a href="http://r.io/k8s-minikube/storage-provisioner:v1.8.0" data-saferedirecturl="https://www.google.com/url?hl=en&q=http://r.io/k8s-minikube/storage-provisioner:v1.8.0&source=gmail&ust=1515821717506000&usg=AFQjCNHilUJGRCqAxx0Naa3yTEDGQ9X2Dw">r.io/k8s-minikube/storage-provisioner:v1.8.0</a> at C:\Users\panan4\.minikube\cache\</p> <p style="font-weight: 400;">images\<a href="http://gcr.io/" data-saferedirecturl="https://www.google.com/url?hl=en&q=http://gcr.io&source=gmail&ust=1515821717506000&usg=AFQjCNHwyTmXfOb8jcAGQbTDyIr_DuEirg">gcr.io</a>\k8s-minikube\storage-provisioner_v1.8.0</p> <p style="font-weight: 400;">I0110 <span data-term="goog_1571914277">12:16:05.901354</span> 10504 cache_images.go:290] Attempting to cache image: gc</p> <p style="font-weight: 400;"><a href="http://r.io/google_containers/k8s-dns-dnsmasq-nanny-amd64:1.14.5" data-saferedirecturl="https://www.google.com/url?hl=en&q=http://r.io/google_containers/k8s-dns-dnsmasq-nanny-amd64:1.14.5&source=gmail&ust=1515821717506000&usg=AFQjCNFAVT9yppX_1usJ2E0YbShOwXUE9A">r.io/google_containers/k8s-dns-dnsmasq-nanny-amd64:1.14.5</a> at C:\Users\panan4\.mi</p> <p style="font-weight: 400;">nikube\cache\images\<a href="http://gcr.io/" data-saferedirecturl="https://www.google.com/url?hl=en&q=http://gcr.io&source=gmail&ust=1515821717507000&usg=AFQjCNF--H_EnOHq-1gORX9rvCyL0guvAA">gcr.io</a>\google_containers\k8s-dns-dnsmasq-nanny-amd64_1.14.5</p> <p style="font-weight: 400;">Starting local Kubernetes v1.8.0 cluster...</p> <p style="font-weight: 400;">Starting VM...</p> <p style="font-weight: 400;">I0110 <span data-term="goog_1571914278">12:16:05.901354</span> 10504 cluster.go:74] Skipping create...Using existing ma</p> <p style="font-weight: 400;">chine configuration</p> <p style="font-weight: 400;">I0110 <span data-term="goog_1571914279">12:16:05.901354</span> 10504 cache_images.go:290] Attempting to cache image: gc</p> <p style="font-weight: 400;"><a href="http://r.io/google_containers/kubernetes-dashboard-amd64:v1.6.3" data-saferedirecturl="https://www.google.com/url?hl=en&q=http://r.io/google_containers/kubernetes-dashboard-amd64:v1.6.3&source=gmail&ust=1515821717507000&usg=AFQjCNERLC4qpuUBrUqm5OvSjac96pWNKw">r.io/google_containers/kubernetes-dashboard-amd64:v1.6.3</a> at C:\Users\panan4\.min</p> <p style="font-weight: 400;">ikube\cache\images\<a href="http://gcr.io/" data-saferedirecturl="https://www.google.com/url?hl=en&q=http://gcr.io&source=gmail&ust=1515821717507000&usg=AFQjCNF--H_EnOHq-1gORX9rvCyL0guvAA">gcr.io</a>\google_containers\kubernetes-dashboard-amd64_v1.6.3</p> <p style="font-weight: 400;">I0110 <span data-term="goog_1571914280">12:16:05.901354</span> 10504 cache_images.go:290] Attempting to cache image: gc</p> <p style="font-weight: 400;"><a href="http://r.io/google_containers/k8s-dns-kube-dns-amd64:1.14.5" data-saferedirecturl="https://www.google.com/url?hl=en&q=http://r.io/google_containers/k8s-dns-kube-dns-amd64:1.14.5&source=gmail&ust=1515821717507000&usg=AFQjCNFhurp_V-c-NFhO73j_Zjakc4fptw">r.io/google_containers/k8s-dns-kube-dns-amd64:1.14.5</a> at C:\Users\panan4\.minikub</p> <p style="font-weight: 400;">e\cache\images\<a href="http://gcr.io/" data-saferedirecturl="https://www.google.com/url?hl=en&q=http://gcr.io&source=gmail&ust=1515821717507000&usg=AFQjCNF--H_EnOHq-1gORX9rvCyL0guvAA">gcr.io</a>\google_containers\k8s-dns-kube-dns-amd64_1.14.5</p> <p style="font-weight: 400;">I0110 <span data-term="goog_1571914281">12:16:05.901354</span> 10504 cache_images.go:290] Attempting to cache image: gc</p> <p style="font-weight: 400;"><a href="http://r.io/google-containers/kube-addon-manager:v6.4-beta.2" data-saferedirecturl="https://www.google.com/url?hl=en&q=http://r.io/google-containers/kube-addon-manager:v6.4-beta.2&source=gmail&ust=1515821717507000&usg=AFQjCNEFsklfJPJCpLyEX7qsaLsvUDDRow">r.io/google-containers/kube-addon-manager:v6.4-beta.2</a> at C:\Users\panan4\.miniku</p> <p style="font-weight: 400;">be\cache\images\<a href="http://gcr.io/" data-saferedirecturl="https://www.google.com/url?hl=en&q=http://gcr.io&source=gmail&ust=1515821717507000&usg=AFQjCNF--H_EnOHq-1gORX9rvCyL0guvAA">gcr.io</a>\google-containers\kube-addon-manager_v6.4-beta.2</p> <p style="font-weight: 400;">I0110 <span data-term="goog_1571914282">12:16:05.901354</span> 10504 cache_images.go:290] Attempting to cache image: gc</p> <p style="font-weight: 400;"><a href="http://r.io/google_containers/k8s-dns-sidecar-amd64:1.14.5" data-saferedirecturl="https://www.google.com/url?hl=en&q=http://r.io/google_containers/k8s-dns-sidecar-amd64:1.14.5&source=gmail&ust=1515821717507000&usg=AFQjCNEOfewUFCow70i9iSK2lBFDahW47A">r.io/google_containers/k8s-dns-sidecar-amd64:1.14.5</a> at C:\Users\panan4\.minikube</p> <p style="font-weight: 400;">\cache\images\<a href="http://gcr.io/" data-saferedirecturl="https://www.google.com/url?hl=en&q=http://gcr.io&source=gmail&ust=1515821717507000&usg=AFQjCNF--H_EnOHq-1gORX9rvCyL0guvAA">gcr.io</a>\google_containers\k8s-dns-sidecar-amd64_1.14.5</p> <p style="font-weight: 400;">I0110 <span data-term="goog_1571914283">12:16:05.901354</span> 10504 cache_images.go:290] Attempting to cache image: gc</p> <p style="font-weight: 400;"><a href="http://r.io/google_containers/pause-amd64:3.0" data-saferedirecturl="https://www.google.com/url?hl=en&q=http://r.io/google_containers/pause-amd64:3.0&source=gmail&ust=1515821717507000&usg=AFQjCNF2E15ZIwSbjHDnD4zxOcapo39PIQ">r.io/google_containers/pause-amd64:3.0</a> at C:\Users\panan4\.minikube\cache\images</p> <p style="font-weight: 400;">\<a href="http://gcr.io/" data-saferedirecturl="https://www.google.com/url?hl=en&q=http://gcr.io&source=gmail&ust=1515821717507000&usg=AFQjCNF--H_EnOHq-1gORX9rvCyL0guvAA">gcr.io</a>\google_containers\pause-amd64_3.0</p> <p style="font-weight: 400;">I0110 <span data-term="goog_1571914284">12:16:05.911354</span> 10504 cache_images.go:78] Successfully cached all images</p> <p style="font-weight: 400;">.</p> <p style="font-weight: 400;">I0110 <span data-term="goog_1571914285">12:16:06.292552</span> 10504 cluster.go:83] Machine state: Error</p> <p style="font-weight: 400;">E0110 <span data-term="goog_1571914286">12:16:06.292552</span> 10504 start.go:150] Error starting host: Error getting s</p> <p style="font-weight: 400;">tate for host: machine does not exist.</p> <p style="font-weight: 400;"></p> <p style="font-weight: 400;">Retrying.</p> <p style="font-weight: 400;">E0110 <span data-term="goog_1571914287">12:16:06.292552</span> 10504 start.go:156] Error starting host: Error getting</p> <p style="font-weight: 400;">state for host: machine does not exist</p> <p style="font-weight: 400;">================================================================================</p> <p style="font-weight: 400;"></p> <p style="font-weight: 400;">An error has occurred. Would you like to opt in to sending anonymized crash</p> <p style="font-weight: 400;">information to minikube to help prevent future errors?</p> <p style="font-weight: 400;">To opt out of these messages, run the command:</p> <p style="font-weight: 400;"> minikube config set WantReportErrorPrompt false</p> <p style="font-weight: 400;">================================================================================</p>
Solutions
Please use/install minikube in the c drive.