Alpine images are slimline Linux images that often omit packages that are used frequently on other distributions.
If you try to use the checkout step but you see the following error:
Either git or ssh (required by git to clone through SSH) is not installed in the image. Falling back to CircleCI's native git client but the behavior may be different from official git. If this is an issue, please use an image that has official git and ssh installed.
This is caused by either SSH or git missing from the image that you are using.
Solution
The following commands will install openSSH and git the code can be copied and pasted into your config.yml before calling the checkout step:
- run: apk update
- run: apk upgrade
- run: apk add --no-cache openssh
- run: apk add git
Outcome
The commands will allow you to run the checkout step successfully.
Comments
Article is closed for comments.