Questiondocker images Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? AnswerChange /etc/docker/daemon.json From
{ "dns": ["8.8.8.8"], }to
{ "dns": ["8.8.8.8"] }sudo systemctl restart dockerThis command saved my life:
sudo dockerd unable to configure the Docker daemon with file /etc/docker/daemon.json: invalid character '}' looking for beginning of object key string
QuestionMay 04 07:27:54 baifudong-Yi-Plus14 sudo[3937]: baifudong : TTY=pts/0 ; PWD=/home/baifudong ; USER=root ; COMMAND=/usr/bin/systemctl restart docker May 04 07:27:54 baifudong-Yi-Plus14 sudo[3937]: pam_unix(sudo:session): session opened for user root(uid=0) by baifudong(uid=1000) May 04 07:27:54 baifudong-Yi-Plus14 systemd[1]: Starting Docker Socket for the API... May 04 07:27:54 baifudong-Yi-Plus14 systemd[1]: Listening on Docker Socket for the API. May 04 07:27:54 baifudong-Yi-Plus14 systemd[1]: docker.service: Start request repeated too quickly. May 04 07:27:54 baifudong-Yi-Plus14 systemd[1]: docker.service: Failed with result 'exit-code'.
Questiongitbook fetch latest (node:27128) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead. (Use `node --trace-deprecation ...` to show where the warning was created) Installing GitBook 2.6.9 (node:27386) [DEP0060] DeprecationWarning: The `util._extend` API is deprecated. Please use Object.assign() instead. (Use `node --trace-deprecation ...` to show where the warning was created) /usr/local/lib/node_modules/gitbook-cli/node_modules/npm/node_modules/graceful-fs/polyfills.js:287 if (cb) cb.apply(this, arguments) ^ TypeError: cb.apply is not a function at /usr/local/lib/node_modules/gitbook-cli/node_modules/npm/node_modules/graceful-fs/polyfills.js:287:18 at FSReqCallback.
Question[...] Error: Your Command Line Tools are too outdated. Update them from Software Update in System Preferences. If that doesn't show you any updates, run: sudo rm -rf /Library/Developer/CommandLineTools sudo xcode-select --install Alternatively, manually download them from: https://developer.apple.com/download/all/. You should download the Command Line Tools for Xcode 14.2. Answersudo rm -fr /Library/Developer/CommandLineTools sudo xcode-select --install