Wednesday, October 17, 2018
Docker: Error response from daemon, Exception caught, Bad Request - FOR PROXY USERS
PROBLEM:
C:\Users\alexeyz> docker run hello-world
Unable to find image 'hello-world:latest' locally
docker: Error response from daemon: Get https://registry-1.docker.io/v2/: Bad Request.
See 'docker run --help'.
-OR-
[ERROR] Failed to execute goal com.spotify:docker-maven-plugin:0.4.10:build (myproject.all) on project com.myproject.docker: Exception caught: Get https://registry-1.docker.io/v2/: Bad Request
SOLUTION:
1. Switch off proxy in Docker
2. Find non-proxy internet.
Friday, October 12, 2018
Mongo notes
use admin
db.runCommand( {buildInfo: 1} )
db.adminCommand({setParameter: 1, internalQueryExecMaxBlockingSortBytes:67108864})
db.runCommand( {buildInfo: 1} )
db.adminCommand({setParameter: 1, internalQueryExecMaxBlockingSortBytes:67108864})
Friday, October 5, 2018
Mask credit card number in java
if (string.length() > 4) {
result = string.replaceAll("(?<=.{4})(\\w)", "*");
} else {
result = string.replaceAll("(\\w)", "*");
}
Subscribe to:
Posts (Atom)

