Docker: not found - docker

I started having this issue today after macOS High Sierra update.
I went ahead and uninstalled docker via Docker > Preferences.
Installed fresh docker and I still can't get the following command to work
docker info
It works for root user, but not for my user.

There is an open issue in docker for mac https://github.com/docker/for-mac/issues/2357
Apparently new version of H Sierra, does not work properly with docker for mac

[https://github.com/docker/for-mac/issues/47]
After setting docker.sock path, I could not find com.docker.docker.
So, instead of docker for mac, I installed docker using brew command,
then run
brew cask install docker
Now, click on the whale icon and click allow for all the successive prompts. Now, try re running the build with the tag you want.
docker build -t <name> .
Now, this works as expected. please try. This resolved my problem. hope it helps.

try install using brew
brew install docker

Related

Qt platform plugin Error in runnig container. how to show open cv output image with docker container on linux?

I wanna create a docker image on windows and image base [in docker file] for docker image would be linux os. My program uses the open-cv program which its output image has to be shown with CV2.imshow(). but after running container, I get this error.
please help to fix it.
qt.qpa.xcb: could not connect to display
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/usr/local/lib/python3.9/site-packages/cv2/qt/plugins" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: xcb.
I had this same issue and none of the solutions I looked up solved the issue for me. I even used xhost + and imshow still did not work.
I was using the image tensorflow/tensorflow:2.7.0-gpu as my base image for my project. Seems like the package libsm6 is missing for some reason, and doing apt install libsm6 made it work.
Hope this helped!
I also had this issue. The one solution that finally worked was to install an earlier version of opencv-python. The version I had originally installed was 4.6.0.66. I uninstalled opencv pip uninstall opencv-python in docker and reinstalled RUN pip install opencv-python==4.1.2.30 in the dockerfile.

CDK command not found - macOS

I have installed node, aws-cdk successfully. but when I run cdk --version/cdk doc , the terminal doesn't recognise CDK commands.
I am on mac OS, and I am new user of Mac, if some one can help, what path variable i need to set and how to set it.
Many thanks,
I'm on macOs too and running this command from terminal helped me to fix the CDK command not found issue:
export PATH=$PATH:$(npm get prefix)/bin
Then run cdk --version.
I had a similar issue although I installed cdk using homebrew
When I run brew doctor, it showed that aws-cdk was not linked.
Solution was to run brew link aws-cdk

Not able to install homebrew on my m1 macbook

I am trying to install homebrew on m1 MacBook but I am getting this error message every time when I try to run this command.
Please anyone help me to fix this.
How to install HomeBrew on new MacBook: macOS Big Sur
install HomeBrew from terminal Homebrew:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
After installation, we need to change path
Warning: /opt/homebrew/bin is not in your PATH.
==> Installation successful!
To change path, follow Next steps: - Add Homebrew to your PATH in /Users/username/.zprofile As mentioned in terminal:
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> /Users/username/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"
All done ready to use brew, check HomeBrew version:
brew --version
Output
Homebrew 3.1.5
Homebrew/homebrew-core (git revision 5741ae3fec; last commit 2021-05-08)
Ok, I managed to figure this out after being pointed in the right direction. Full details can be found here: https://github.com/Homebrew/homebrew-cask/issues/100633
In summary, my ISPs (Virgin Media) Web Safe Settings were on, and this resulted in some issue with connecting to github (ping GitHub.com via terminal and search the IP to see where its pointing to), so had to turn off the web settings, rebooted my router just in case and used a new terminal window to ping github.com again and noticed a change in the IP address. Tried reinstalling Homebrew again and it worked!!
in my case, i fix the problem open the terminal as rosseta.
finder - application - utility - terminal - right mouse button - 'bring the imformation (i'm not sure, i'm korean user)' - check the 'open with the rosseta' - and try install homebrew again ! !
(copy-paste Homebrew with the terminal)
and...
==> Installation successful!
But, you will get a warning " /opt/homebrew/bin is not in your PATH". Then, follow the Next steps guide showed in terminal to finish add Homebrew to your PATH.
To end, type "brew -v" to check installed brew version.

npm: not found when building Docker container

I had a developer create a Docker file for me -- and it's worked for months flawlessly. Recently I formatted my mac to clean some space, and re-ran the command to build the Docker container, and I got the following error:
See this screenshot
I'm not quite sure what the problem is. It builds properly on my other machines, but it's giving me a hard time on this new fresh install. I'm not a technical person, thanks everyone.
By looking at your screenshot it seems like you are not installing npm.
Please add npm to your apt-get install RUN command.

Terminal hangs when installing rb-rmagick

I'm trying to install rb-rmagick and running into some trouble. The installation stops at "Building rb-rmagick". I know it takes a while, so I let it run overnight, but still don't see any progress. I'm running it on a brand new MacBook Pro so speed/memory shouldn't be an issue.
From http://rb-rmagick.darwinports.com/, the instruction says to do cd /opt/local/bin/portslocation/dports/rb-rmagick before you run sudo port install rb-rmagick, but I don't have the portslocation directory in my bin.
I've installed macPort.
I found out there's actually an error after doing sudo port -v install rb-rmagick. A font file was missing. There are a couple of ways to solve this. trac.macports.org/ticket/19602 has some explanation.

Resources