3334b0dc02b7d88cd21a987b3765b30d581339cd mspeir Wed Sep 2 14:09:21 2026 -0700 store, docker help: document the prebuilt Docker Hub image and correct the image size Braney pointed out on the ticket that neither page mentions genomebrowser/server, the image the weekly build pushes to Docker Hub (buildReleaseDocker.sh). It is rebuilt every release, latest currently points at v502, and one tag covers amd64 and arm64, so pulling it is the better path for most people than building the Dockerfile. Both pages now say so, and docker.html gains a section with the pull and run commands ahead of the build instructions. The store page said the built image is around 3GB, which was true a few releases ago. Building the current Dockerfile gives about 5.6GB on disk, and the published image is a 2.6GB download that unpacks to about 7.4GB, so the page now tells people to plan on 8GB for the image alone, separate from track data. refs #37764 Co-Authored-By: Claude Opus 5 (1M context) diff --git src/hg/htdocs/goldenPath/help/docker.html src/hg/htdocs/goldenPath/help/docker.html index 06ed38094d9..02c596a24ad 100755 --- src/hg/htdocs/goldenPath/help/docker.html +++ src/hg/htdocs/goldenPath/help/docker.html @@ -1,29 +1,30 @@

Docker Help Page

Contents

What is Docker?
How to Install Docker Desktop?
Using Docker Desktop for UCSC Genome Browser
+
Using the Prebuilt UCSC Genome Browser Image
Create a Docker Volume for Data Persistence
Updating the Latest UCSC Genome Browser Version
Customize a UCSC Genome Browser Docker Container

What is Docker?

Docker is a platform for developing, testing and running applications. Docker can be used to run genomics tools and manage software such as the UCSC Genome Browser. Docker offers consistency across different computers and environments by packaging everything needed including specific software versions and configurations into a self-contained unit called a container.

Container

@@ -74,30 +75,61 @@
  • Check system requirements
  • Follow Generic installation steps

    Using Docker Desktop for UCSC Genome Browser

    Start Docker Desktop after installation is complete:

    + +

    Using the Prebuilt UCSC Genome Browser Image

    +

    +UCSC publishes a ready-made Genome Browser image on Docker Hub as +genomebrowser/server. The +image is rebuilt for every Genome Browser release and tagged with the version number, for example +v502. The latest tag always points at the most recent release, and a +single tag covers both Intel and Apple Silicon machines. Most people should pull this image rather +than build the Dockerfile themselves, since pulling takes a few minutes where a build takes +considerably longer.

    +

    +The following commands download the image and start a container, mapping port 8080 on the host +machine to port 80 in the container:

    +
    docker pull genomebrowser/server
    +docker run -d --name ucsc_genomebrowser_container -p 8080:80 genomebrowser/server
    +

    The Genome Browser is then available at http://localhost:8080

    + +

    To pull a specific release rather than the most recent one, add the version tag:

    +
    docker pull genomebrowser/server:v502
    + +

    +Plan on about 8GB of disk space for the image itself. The download is around 2.6GB and unpacks to +around 7.4GB. Track data is downloaded from UCSC as you use the browser and needs space beyond +that. See the Create a Docker Volume for Data Persistence section below +for keeping that data between container restarts.

    + +

    +Build the image from the Dockerfile instead if you need to change how it is built, for instance to +add other software or to change the Genome Browser configuration at build time. The next sections +describe how to do that.

    +

    Obtaining a UCSC Genome Browser Dockerfile

    The UCSC Genome Browser dockerfile can be obtained from the UCSC Genome Browser Github by using the wget command:

    wget https://raw.githubusercontent.com/ucscGenomeBrowser/kent/master/src/product/installer/docker/Dockerfile

    Creating a Image

    Once the dockerfile has been downloaded, running the docker build with the 't' option allows the naming and the optional tag (format: "name:tag") of the image. The image can be created by running the following command in the same directory where the dockerfile is located:

    docker build . -t user_name/ucsc_genomebrowser_image

    Creating a Container

    After the image has been created, running the docker run command and the image with the -d option allows the container to be run in the background, whereas the default runs the container in the foreground. The -p option publishes a container's port(s) to the host. The following command