2018年10月28日日曜日

PostgreSQLで時間をSELECTする方法

Postgresqlで時間を確認したかったので、どうすれば良いのか調べたらあったのでメモ。

current_dateで日付、current_timeで時分秒がとれました。

>select current_date,current_time;
date | timetz
------------+--------------------
2018-10-25 | 14:50:57.320176+09


2018年10月27日土曜日

docker pullに失敗してunauthorized: incorrect username or passwordがでたときの対処法

最近、ミーティングにでることが業務になってきていて開発することが減ったので、Dockerを全く使っていなかったらエラーがでたのでメモ。

$ docker pull centos
Using default tag: latest
Error response from daemon: Get https://registry-1.docker.io/v2/library/centos/manifests/latest : unauthorized: incorrect username or password

エラーメッセージを読みと、unauthorizedってかいてあるので、ユーザ認証ができていない?

ということで、docker loginでログイン。

$ docker login
Authenticating with existing credentials...
Stored credentials invalid or expired
Login with your Docker ID to push and pull images from Docker Hub. If you don't have a Docker ID, head over to https://hub.docker.com to create one.
Username (xxx@xxx.xxx):
Password:

無事に解決しました。

macOSでminikubeをインストールしようとしたら書き込みエラーになった

ローカル環境でKubernetesを使えるようにしようと環境構築中にエラーが 下記が今回のエラーで書き込みできない感じのメッセージが出ています。  $ brew install minikube Updating Homebrew... Error: The following ...