Docker image run local gracefully. Deploy and stuck at infinite reboot
The problem is at your Docker File build from Mac M1
You must include this options to let it know that your build is for x64 architecture.
--platform=linux/amd64
Example in Node.js image is:
FROM --platform=linux/amd64 node:16-alpine
First of all, set up your SSH key both locally my-id-rsa
and also on the remote bitbucket web UI my-id-rsa.pub
Adding bitbucket.org-suffix
For project aaaaa
you just adding -aaaaa
after the domain name
git clone git@bitbucket.org-aaaaa:minor_digital/my-project.git
Edit config file
Edit your config file reside in your home ~/.ssh/config
folder.
Create new one if there is no any.
Note the the Host MUST match with your host in git command
Host bitbucket.org-aaaaa
Hostname bitbucket.org
User git
IdentityFile ~/.ssh/my-id-rsa
What need to be matched
@bitbucket.org-aaaaa
in the git command- Config file
Host bitbucket.org-aaaaa
My case is when I initialize the database in WSL2 and try to access it with GUI tool on the Window, for example, Dbeaver, DB for SQLite etc.
Possible Cause
From internet search, seem like the WSL path \\wsl$\Ubuntu ...
is the problem.
So the file must be on the Window path
Linking Workaround
Now we move the database file to Window path.
As an example foo.db
is in my desktop.
Now link it into our WSL machine. Note that we need flag -s
.
Also note that way to access Window’s file in WSL2 is through /mnt/c/...
Command
ln -s <source path> <destination path>Inside WSL2
ln -s /mnt/c/Users/Tanut/Desktop/foo.db ./foo.db
Now we can:
- Access from GUI from Window machine
- Have convenient short path that can access from WSL machine
Hope this help !