https://github.com/dideler/docker-fish-shell
π³ππDocker image for the Friendly Interactive Shell, aka fish
https://github.com/dideler/docker-fish-shell
Last synced: about 1 year ago
JSON representation
π³ππDocker image for the Friendly Interactive Shell, aka fish
- Host: GitHub
- URL: https://github.com/dideler/docker-fish-shell
- Owner: dideler
- License: mit
- Created: 2019-01-05T16:44:22.000Z (over 7 years ago)
- Default Branch: main
- Last Pushed: 2023-10-31T02:36:44.000Z (over 2 years ago)
- Last Synced: 2025-03-24T19:36:32.876Z (about 1 year ago)
- Language: Dockerfile
- Homepage: https://hub.docker.com/r/dideler/fish-shell
- Size: 19.5 KB
- Stars: 17
- Watchers: 1
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# fish π + docker π³
[](https://hub.docker.com/r/dideler/fish-shell)
[](https://hub.docker.com/r/dideler/fish-shell)
Ubuntu LTS container with fish installed as the default shell.
- Available on Docker Hub at https://hub.docker.com/r/dideler/fish-shell
- Available on GitHub at https://github.com/users/dideler/packages/container/package/fish-shell
## Use case
**Useful when** wanting to play around with fish in a pristine and ephemeral environment.
**Useful when** reproducibility is desired (e.g. controlled environment for running a fish package CI pipeline).
**Not intended for** developing on the fish codebase.
To build the shell from source with the help of Docker, see [fish-shell's Dockerfile](https://github.com/fish-shell/fish-shell/blob/master/Dockerfile) instead.
## Versions
See image tags [on DockerHub][dh-image-tags] or [on GitHub][gh-image-tags] for available fish versions.
Images are based on the latest Ubuntu LTS available at the time of building.
[dh-image-tags]: https://hub.docker.com/r/dideler/fish-shell/tags?page=1&ordering=name
[gh-image-tags]: https://github.com/users/dideler/packages/container/fish-shell/versions
## Examples
Pulling the latest image
```shell
docker pull dideler/fish-shell # from DockerHub
docker pull ghcr.io/dideler/fish-shell # from GitHub
```
Running commands on a specific version
```shell
$ docker container run --rm dideler/fish-shell:2.7.1 --version
fish, version 2.7.1
```
```shell
$ docker container run -it --rm dideler/fish-shell:3.0.0
root@aa26d2209674 /# for i in (seq 1 3)
echo $i
end
1
2
3
```
Using the image in a CircleCI build for testing [a fish packge](https://github.com/dideler/fish-cd-git/blob/master/.circleci/config.yml)
```yaml
version: 2
jobs:
build:
docker:
- image: dideler/fish-shell:3.6.1
shell: fish
steps:
- checkout
- run:
name: Install Fisher
command: |
apt-get update --quiet
apt-get install --yes --quiet curl
curl -sL git.io/fisher | source && fisher install jorgebucaran/fisher
fisher --version
- run:
name: Install fish-cd-git
command: |
fisher install