# Introducing Docker Hugo - a CircleCI 2.0 Ready Docker Image

**URL:** <https://discourse.gohugo.io/t/introducing-docker-hugo-a-circleci-2-0-ready-docker-image/6448>\
**Category:** Announcements\
**Created:** [May 4, 2017, 11:05pm UTC](https://discourse.gohugo.io/t/introducing-docker-hugo-a-circleci-2-0-ready-docker-image/6448 "2017-05-04T23:05:21Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![FelicianoTech](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/felicianotech/32/22886_2.png) [@FelicianoTech](https://discourse.gohugo.io/u/FelicianoTech)\
**Post date:** [May 4, 2017, 11:05pm UTC](https://discourse.gohugo.io/t/introducing-docker-hugo-a-circleci-2-0-ready-docker-image/6448/1 "2017-05-04T23:05:21Z")

</div>

I’ve created and maintain several websites that are statically-generated with [Hugo](https://gohugo.io/) (including the one you’re reading right now). I build and test these sites with[CircleCI](https://circleci.com/). With CircleCI 2.0, the build process is heavily Docker based. I made a Docker image for use with CircleCI that has Hugo to build the site and [HTMLProofer](https://github.com/gjtorikian/html-proofer) to test it.

Here’s my blog post if you’d like to read more: [https://feliciano.tech/blog/introducing-docker-hugo/](https://feliciano.tech/blog/introducing-docker-hugo/)

I visit this forum frequently so feel free to comment on my blog or here, I’ll see either.

One note from me, I’ve seen several Docker images for Hugo now. One things I can say for mine which I haven’t always seen for the others is that this will be maintained. I don’t really have a choice as I use it for several sites. 😛

---

<div class="post-metadata">

**Author:** ![FelicianoTech](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/felicianotech/32/22886_2.png) [@FelicianoTech](https://discourse.gohugo.io/u/FelicianoTech)\
**Post date:** [June 14, 2017, 6:19pm UTC](https://discourse.gohugo.io/t/introducing-docker-hugo-a-circleci-2-0-ready-docker-image/6448/2 "2017-06-14T18:19:17Z")

</div>

Also created a little logo and [shared on Product Hunt](https://www.producthunt.com/posts/docker-hugo). Any feedback would be greatly appreciated, especially if you use Hugo on Travis CI as I’ve only tested this image on CircleCI so far.

 ![](https://canada1.discourse-cdn.com/flex036/uploads/gohugo/original/2X/a/aaeec9e401a3cb27b8d7ce5f1ba5884a7ac89f17.png)

---

<div class="post-metadata">

**Author:** ![Jura](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/jura/32/13581_2.png) [@Jura](https://discourse.gohugo.io/u/Jura)\
**Post date:** [February 12, 2019, 2:15pm UTC](https://discourse.gohugo.io/t/introducing-docker-hugo-a-circleci-2-0-ready-docker-image/6448/3 "2019-02-12T14:15:47Z")

</div>

Thanks for making and maintaining the Hugo docker image. Very helpful! 🙂

One tip for people who also land on this topic through Google search, the CircleCI code example for this Docker image [on GitHub](https://github.com/cibuilds/hugo) is incorrect.

There it reads:

```auto
docker:
  - image: felicianotech/docker-hugo:0.50

```

This should be:

```auto
docker:
  - image: cibuilds/hugo:0.50

```

Else you’ll get the _‘Error response from daemon: manifest for felicianotech/docker-hugo:0.50 not found’_ error message in CircleCI.

Just a heads up for other people who want to try CircleCI and immediately get such an error. 👍

---

<div class="post-metadata">

**Author:** ![FelicianoTech](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/felicianotech/32/22886_2.png) [@FelicianoTech](https://discourse.gohugo.io/u/FelicianoTech)\
**Post date:** [February 14, 2019, 2:35pm UTC](https://discourse.gohugo.io/t/introducing-docker-hugo-a-circleci-2-0-ready-docker-image/6448/4 "2019-02-14T14:35:52Z")

</div>

Thank you for bringing attention to this. I’ve updated the readme in the repo.

---

<div class="post-metadata">

**Author:** ![Jura](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/jura/32/13581_2.png) [@Jura](https://discourse.gohugo.io/u/Jura)\
**Post date:** [February 15, 2019, 5:48pm UTC](https://discourse.gohugo.io/t/introducing-docker-hugo-a-circleci-2-0-ready-docker-image/6448/5 "2019-02-15T17:48:05Z")

</div>

Thank you again for making the Hugo docker image. I really like working with the image, and the included html-proofer works good too! Also props to CircleCI because it’s pretty cool what’s possible with their service, even with their generous free plan. 👍 🙂

---

<div class="post-metadata">

**Author:** ![Jura](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/jura/32/13581_2.png) [@Jura](https://discourse.gohugo.io/u/Jura)\
**Post date:** [September 23, 2020, 5:39am UTC](https://discourse.gohugo.io/t/introducing-docker-hugo-a-circleci-2-0-ready-docker-image/6448/6 "2020-09-23T05:39:49Z")

</div>

Does the Hugo CircleCI image also has Go for Hugo Modules? I can’t figure it out from the [‘image layers’](https://hub.docker.com/layers/cibuilds/hugo/0.75/images/sha256-5130e95a5a0fe14fe29caeef0663287b9bc6434cfb212b342510b77513be9d46?context=explore) information on Docker.

(I figured this old topic is the best resource for general Hugo CircleCI questions.)

---

<div class="post-metadata">

**Author:** ![FelicianoTech](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/felicianotech/32/22886_2.png) [@FelicianoTech](https://discourse.gohugo.io/u/FelicianoTech)\
**Post date:** [September 23, 2020, 12:46pm UTC](https://discourse.gohugo.io/t/introducing-docker-hugo-a-circleci-2-0-ready-docker-image/6448/7 "2020-09-23T12:46:23Z")

</div>

Great question. The answer is no. I created the image way before Hugo ever had module support and thus needed Go.

The immediate solution would be to use the CircleCI Go orb in order to install Go on the fly into the build: [https://circleci.com/orbs/registry/orb/circleci/go](https://circleci.com/orbs/registry/orb/circleci/go)

I will update the image and get Go added into it very soon (less than 48 hours hopefully). I will update here once that is done.

---

<div class="post-metadata">

**Author:** ![Jura](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/jura/32/13581_2.png) [@Jura](https://discourse.gohugo.io/u/Jura)\
**Post date:** [September 23, 2020, 6:10pm UTC](https://discourse.gohugo.io/t/introducing-docker-hugo-a-circleci-2-0-ready-docker-image/6448/8 "2020-09-23T18:10:25Z")

</div>

Thanks for the reply Ricardo!

Well if I’m the only one asking, there’s no need to add it specially. Attaching the Go orb should also work fine. 🙂

---

<div class="post-metadata">

**Author:** ![FelicianoTech](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/felicianotech/32/22886_2.png) [@FelicianoTech](https://discourse.gohugo.io/u/FelicianoTech)\
**Post date:** [September 24, 2020, 2:49pm UTC](https://discourse.gohugo.io/t/introducing-docker-hugo-a-circleci-2-0-ready-docker-image/6448/9 "2020-09-24T14:49:09Z")

</div>

No I think this was a good request. Go is now needed to fully support Hugo.

The image has been updated. You can see the PR [here](https://github.com/cibuilds/hugo/pull/182). The next release of Hugo, whatever that may be, will include Go in the image.

If you want to use an image with Go in it right now, you can use `cibuilds/hugo:edge`. I would suggest using this as a temporary tag until the next release comes out.

---

<div class="post-metadata">

**Author:** ![Jura](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/jura/32/13581_2.png) [@Jura](https://discourse.gohugo.io/u/Jura)\
**Post date:** [September 25, 2020, 10:34am UTC](https://discourse.gohugo.io/t/introducing-docker-hugo-a-circleci-2-0-ready-docker-image/6448/10 "2020-09-25T10:34:28Z")

</div>

Thank you! 👍 I’m looking forward to the next Hugo release. Yesterday I already did a quick test with `hugo:edge` and looks good to me. 🙂

Also thanks for keeping the CircleCI Hugo image up to date. It’s very easy to use and runs quick.
