- Install Docker CE for Windows
- Go to Docker for Windows Settings -> General and enable
Expose daemon on tcp://localhost:2375 without TLS.
This will enable the Docker remote API for requests, coming from localhost, not from another computer in your network. A TLS secured version is not yet supported in Docker for Windows. See docker/for-win#453 for more information. I also tried a daemon.json file with options tlscacert, tlscert, tlskey and tlsverify, but Docker for Windows crashed on booting.
- Enable Developer Mode as described in Enable your device for development
- Install WSL by running the following in Powershell as Administrator: `E
This file contains hidden or 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
| # | |
| # This script installs and configures WSL to work with Docker Toolbox for Windows. | |
| # 1. Install WSL (check out [bowinstaller](https://github.com/xezpeleta/bowinstaller) for programmatic installation. | |
| # 2. Run the contents of this script in Bash. (copy and paste works fine, no need to save) | |
| # | |
| sudo -sEH << 'EOM' | |
| # Install the docker client and docker-compose | |
| apt-get update && apt-get install -y curl ca-certificates | |
| curl -sSL https://get.docker.com/ | sh | |
| curl -L "https://github.com/docker/compose/releases/download/1.11.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose |
- Docker for Desktop can run on WSL 2 without any Virtual machine!
- WSL 2 is now available for stable Windows 10 (not just Insiders) via the (stable) Windows 10 May 2020 Update.
- WSL 2 is available for Windows Home editions, too, you don't need a Pro license!
- Docker for Desktop with WSL 2 eliminates many issues inherent to running a Linux VM and using shares into that VM.
- WSL 2 supports *nix permissions on Windows file systems mounted into WSL 2 (Postgres container mounts come into mind).
- WSL 2 also supports full GPU access – CUDA and such, too, since the 2021H2 November update even in non-insiders, stable!!
- VirtualBox (in recent version) [can now coexist with Hyper-V](https://us.informatiweb.net/tutorials/it/virtual
FWIW: I (@rondy) am not the creator of the content shared here, which is an excerpt from Edmond Lau's book. I simply copied and pasted it from another location and saved it as a personal note, before it gained popularity on news.ycombinator.com. Unfortunately, I cannot recall the exact origin of the original source, nor was I able to find the author's name, so I am can't provide the appropriate credits.
- By Edmond Lau
- Highly Recommended 👍
- http://www.theeffectiveengineer.com/
Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.
- Follow standard conventions.
- Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
- Boy scout rule. Leave the campground cleaner than you found it.
- Always find root cause. Always look for the root cause of a problem.
This file contains hidden or 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
| # On Windows 7, 8, 10 Hosts file is in c:\windows\system32\drivers\etc\hosts | |
| # | |
| # Block Skype ads | |
| 127.0.0.1 secure-sin.adnxs.com # On skype 7.* | |
| 127.0.0.1 *.adnxs.com # On skype 7.* | |
| 127.0.0.1 logi10.xiti.com # On skype 7.* | |
| 127.0.0.1 *.everesttech.net # On skype 7.* | |
| 127.0.0.1 pixel.everesttech.net # On skype 7.* | |
| 127.0.0.1 d.adroll.com # On skype 7.* |
This file contains hidden or 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
| apply plugin: 'java' | |
| apply plugin: 'eclipse' | |
| sourceCompatibility = JavaVersion.VERSION_1_8 | |
| targetCompatibility = JavaVersion.VERSION_1_8 | |
| eclipseJdt << { | |
| ant.propertyfile(file: ".settings/org.eclipse.core.resources.prefs") { | |
| ant.entry(key: "eclipse.preferences.version", value: "1") | |
| ant.entry(key: "encoding/<project>", value: "utf-8") |
requires
jqCLI
oc get namespaces -o json | jq '[.items[] | select((.metadata.name | startswith("openshift") | not) and (.metadata.name | startswith("kube-") | not) and .metadata.name != "default" and (true)) | .metadata.name ]'
NewerOlder