# Docker build with git source fails

**URL:** <https://forums.suse.com/t/docker-build-with-git-source-fails/17022>\
**Category:** RancherOS\
**Created:** [April 1, 2020, 8:16pm UTC](https://forums.suse.com/t/docker-build-with-git-source-fails/17022 "2020-04-01T20:16:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![borisfeldman](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/borisfeldman/32/6233_2.png) [@borisfeldman](https://forums.suse.com/u/borisfeldman)\
**Post date:** [April 1, 2020, 8:16pm UTC](https://forums.suse.com/t/docker-build-with-git-source-fails/17022/1 "2020-04-01T20:16:31Z")

</div>

I’m trying to do:

```auto
docker build github.com/abiosoft/caddy-docker.git

```

This fails with:

```auto
unable to prepare context: unable to find 'git': exec: "git": executable file not found in $PATH

```

This makes sense as git isn’t installed. Is there a way to install git into the system container or make it otherwise available to docker?

```auto
sudo ros --version
version v1.5.5 from os image rancher/os:v1.5.5

```

Thanks!
