Sign in

hishtory-server

v0.335-ls7

hiSHtory is a better shell history. It stores your shell history in context (what directory you ran the command in, whether it succeeded or failed, how long it took, etc). This is all stored locally and end-to-end encrypted for syncing to to all your other computers.

docker pull ghcr.io/linuxserver-playground/hishtory-server:latest

Quick start · configure#

Pick the optional settings and mods you want, set your paths, ports and values, then copy the result.

Image
Identity

The user the application runs as and its timezone.

Required
API port
Optional settings4

Tick what you need; it is added to every output with its value.

Mods

0 for hishtory-server, 0 universal mods suggested for it, and 13 other universal mods. Ticked mods join one DOCKER_MODS value in the order you tick them.

---
services:
  hishtory-server:
    image: ghcr.io/linuxserver-playground/hishtory-server:latest
    container_name: hishtory-server
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Etc/UTC
    ports:
      - 8080:8080
    restart: unless-stopped

Required settings only. Tick optional settings and mods to add them.

Install on …

Adding a store to your platform

Version tags#

TagLatest buildBuiltTests
:latestStable releasesbranch main · stablev0.335-ls7amd64 · arm64–

Architectures#

Pulling :latest picks the right one for your host automatically.

  • x86_64amd64-latest
  • arm64arm64v8-latest

Inside the latest image#

ghcr.io/linuxserver-playground/hishtory-server:v0.335-ls7

Explore this build
Base image
ghcr.io/linuxserver-playground/baseimage-alpine:3.24
Upstream version
v0.335
amd64 compressed
47.7 MB · 10 layers
arm64 compressed
46.3 MB · 10 layers
amd64 packages
274 · Alpine Linux v3.24
arm64 packages
274 · Alpine Linux v3.24
Tests
not run
Built
Reason
weekly package check

In the fleet#

Live branches, their latest release, upstream version and next scheduled check.

hishtory-server on the fleet board

live branchesloading…

Branch → tagLast buildReleasedUpstreamDriftNext checkFlags
main → :latestsuccess
v0.335
? unknown––

Application setup#

After you have installed hishtory on your machine, add export HISHTORY_SERVER=http://127.0.0.1:8080 (with your server details) to your shellrc. Then run hishtory init (or hishtory init ${SECRET_KEY}) to initialise hishtory against your local server.

See the project readme for more details.

Parameters#

Ports#
PortFunctionRequired
8080:8080API portrequired
Environment variables#
VariableFunctionRequired
PUID=1000User IDrequired
PGID=1000Group IDrequired
TZ=Etc/UTCTimezonerequired
HISHTORY_POSTGRES_DB=postgresql://${HISHTORY_DB_USER}:${HISHTORY_DB_PASS}@hishtory-db:5432/hishtory?sslmode=disablePostgres DB Connection URI (opens in a new tab). Special characters must be URL encoded (opens in a new tab).optional
HISHTORY_SQLITE_DB=/config/hishtory.dbSQLite database path. Needs to be a mounted volume for persistence. Don't set at the same time as HISHTORY_POSTGRES_DB.optional

Read-Only Operation#

This image can be run with a read-only container filesystem. For details please read the docs.

Non-Root Operation#

This image can be run with a non-root user. For details please read the docs.

Environment variables from files (Docker secrets)#

You can set any environment variable from a file by using a special prepend FILE__.

As an example:

-e FILE__MYVAR=/run/secrets/mysecretvariable

Will set the environment variable MYVAR based on the contents of the /run/secrets/mysecretvariable file.

Umask for running applications#

For all of our images we provide the ability to override the default umask settings for services started within the containers using the optional -e UMASK=022 setting. Keep in mind umask is not chmod it subtracts from permissions based on it’s value it does not add. Please read up here before asking for support.

User / Group Identifiers#

When using volumes (-v flags), permissions issues can arise between the host OS and the container, we avoid this issue by allowing you to specify the user PUID and group PGID.

Ensure any volume directories on the host are owned by the same user you specify and any permissions issues will vanish like magic.

In this instance PUID=1000 and PGID=1000, to find yours use id your_user as below:

id your_user

Example output:

uid=1000(your_user) gid=1000(your_user) groups=1000(your_user)

Updating Info#

Most of our images are static, versioned, and require an image update and container recreation to update the app inside. With some exceptions (noted in the relevant readme.md), we do not recommend or support updating apps inside the container. Please consult the Application Setup section above to see if it is recommended for the image.

Below are the instructions for updating containers:

Via Docker Compose

  • Update images:

    • All images:

      docker-compose pull
    • Single image:

      docker-compose pull hishtory-server
  • Update containers:

    • All containers:

      docker-compose up -d
    • Single container:

      docker-compose up -d hishtory-server
  • You can also remove the old dangling images:

    docker image prune

Via Docker Run

  • Update the image:

    docker pull ghcr.io/linuxserver-playground/hishtory-server:latest
  • Stop the running container:

    docker stop hishtory-server
  • Delete the container:

    docker rm hishtory-server
  • Recreate a new container with the same docker run parameters as instructed above (if mapped correctly to a host folder, your /config folder and settings will be preserved)

  • You can also remove the old dangling images:

    docker image prune

Image Update Notifications - Diun (Docker Image Update Notifier)

Tip

We recommend Diun for update notifications. Other tools that automatically update containers unattended are not recommended or supported.

Building locally#

If you want to make local modifications to these images for development purposes or just to customize the logic:

git clone https://github.com/linuxserver-playground/docker-hishtory-server.git
cd docker-hishtory-server
docker build \
  --no-cache \
  --pull \
  -t ghcr.io/linuxserver-playground/hishtory-server:latest .

The ARM variants can be built on x86_64 hardware and vice versa using ghcr.io/linuxserver/qemu-static

docker run --rm --privileged ghcr.io/linuxserver/qemu-static --reset

Once registered you can define the dockerfile to use with -f Dockerfile.aarch64.

Every push builds and tests the image with the shared workflow in linuxserver-playground/workflows; every build’s tests, screenshots and package changes are on the image’s builds on the website.

Builds#

The newest five builds per branch, each with its CI report; 2 older releases are on GitHub, listed below.

TagBuiltReasonChangeResultSize
v0.335-ls7main · c8405606weekly package checkbasesuccess47.7 MB amd6446.3 MB arm64
v0.335-ls6main · a93cdf8bweekly package checkbasesuccess47.7 MB amd6446.3 MB arm64
v0.335-ls5main · 015e9ccfweekly package checkpackagessuccess47.7 MB amd6446.3 MB arm64
v0.335-ls4main · 4cac4e50weekly package checkbasesuccess47.7 MB amd6446.3 MB arm64
v0.335-ls3main · 675d0ffcrelease check or requested rebuildbasesuccess47.7 MB amd6446.3 MB arm64
Older releases2Release, run record and run on GitHub

Mods#

Add a mod with DOCKER_MODS=<image>; separate several with |.

All mods for hishtory-server

No mod targets hishtory-server specifically; the 13 universal mods work with every image.

Changelog#

  1. Rebase to Alpine 3.24.

  2. Rebase to Alpine 3.23.

  3. Rebase to Alpine 3.22.

  4. Rebase to Alpine 3.21.

  5. Bump to go 1.23

  6. Rebase to Alpine 3.20.

  7. Rebase to Alpine 3.19.

  8. Initial Release.

Support#

Questions about running hishtory-server? Start with the documentation and the community; open an issue for bugs.

  • Shell access whilst the container is running:

    docker exec -it hishtory-server /bin/bash
  • To monitor the logs of the container in realtime:

    docker logs -f hishtory-server
  • Container version number:

    docker inspect -f '{{ index .Config.Labels "build_version" }}' hishtory-server
  • Image version number:

    docker inspect -f '{{ index .Config.Labels "build_version" }}' ghcr.io/linuxserver-playground/hishtory-server:latest

Community project

Improve hishtory-server

This image is kept up by volunteers, and you can be one of them. You don't need to know how the pipeline works: point an AI agent at the harness and describe what you want. It reproduces the problem in your Docker, tests the change and drafts the pull request for you to check.

Ask your agent

  • Something is wrong with the hishtory-server image: <what you saw>. Reproduce it, fix it and draft the PR.
  • Add <package> to the hishtory-server image, test it and draft the PR.
  • Make a mod for hishtory-server that <what you need>, and test it.

Contributing an image Every way to help Get the harness (opens in a new tab)

Related

Browse all

doublecommander

03760012-ls11

Double Commander is a free cross platform open source file manager with two panels side by side. It is inspired by Total Commander and features some new ideas.

0 GitHub starsselkiesarm64

ldap-auth

3.4.8-ls7

Ldap-auth software is for authenticating users who request protected resources from servers proxied by nginx. It includes a daemon (ldap-auth) that communicates with an authentication server, and a webserver daemon that generates an authentication cookie based on the user’s credentials. The daemons are written in Python for use with a Lightweight Directory Access Protocol (LDAP) authentication server (OpenLDAP or Microsoft Windows Active Directory 2003 and 2012).

0 GitHub starsalpinearm64

netbox

v4.7.6-ls12

Netbox is an IP address management (IPAM) and data center infrastructure management (DCIM) tool. Initially conceived by the network engineering team at DigitalOcean, NetBox was developed specifically to address the needs of network and infrastructure engineers. It is intended to function as a domain-specific source of truth for network operations.

0 GitHub starsalpinearm64

openssh-server

10.3_p1-r2-ls8

Openssh-server is a sandboxed environment that allows ssh access without giving keys to the entire server. Giving ssh access via private key often means giving full access to the server. This container creates a limited and sandboxed environment that others can ssh into. The users only have access to the folders mapped and the processes running inside this container.

0 GitHub starsalpinearm64