Can I use a Github repository as the source of a Docker image?

Granted, I’m a complete noob with respect to the following, but I think I’m having trouble finding the answer to this question on my own because of the signal/noise based on the search terms docker image, github, etc.

So, concretely, my question is: can I use my forked version of the Rabbitmq official image’s Github repository as the value for my FROM directive?

  • level=fatal msg=“ipset [destroy] failed: ipset v6.29: Set cannot be destroyed: it is in use by a kernel component\n: exit status 1”
  • Issues with proxy in Gitlab CI using Docker runner
  • Local-to-remote replication times out or replicates only few documents CouchDb
  • Working with local filesystem and MySQL database in Docker, tensorflow, Windows 10
  • configuration management in Docker Containers
  • Dockerized Kibana externalizing logs
  • I’ve tried specifying every variation of the URL I can think of, but haven’t had any luck (errors include Error: image ethagnawl/rabbitmq:latest not found, Error: image ethagnawl/rabbitmq:efb97a5171a3672c0c6f38d9127912d5fe753e27 not found).

  • To what extent can a Docker cluster reduce infrastructure costs? [closed]
  • RabbitMQ on Docker: Permission denied when chown-ing erlang cookie
  • Cannot find Application Insights dependency in docker image after dotnet publish
  • Host Global Python Object in Docker Container
  • Let two Containers getting linked to eachother
  • What is a docker-compose.yml file?
  • 2 Solutions collect form web for “Can I use a Github repository as the source of a Docker image?”

    Not directly.

    You can build an image, following a similar Dockerfile as the one used for rabbitmq image: docker-library/rabbitmq/Dockerfile.

    In your image, you can tweak the installation to match your need.
    You can even call git clone commands in that Dockerfile, should you need a repo content in said image.

    Then you can publish your own image on Docker Hub.

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.