diff --git a/images/docker-nano.md b/images/docker-nano.md index f710b6405..c06f36df7 100644 --- a/images/docker-nano.md +++ b/images/docker-nano.md @@ -39,31 +39,7 @@ This image provides various versions that are available via tags. `latest` tag u Here are some example snippets to help you get started creating a container from this image. -### docker - -``` -docker create \ - --name=nano \ - -e PUID=1000 \ - -e PGID=1000 \ - -e TZ=Europe/London \ - -e PEER_HOST=localhost `#optional` \ - -e LIVE_GENESIS_PUB=GENESIS_PUBLIC `#optional` \ - -e LIVE_GENESIS_ACCOUNT=nano_xxxxxx `#optional` \ - -e LIVE_GENESIS_WORK=WORK_FOR_BLOCK `#optional` \ - -e LIVE_GENESIS_SIG=BLOCK_SIGNATURE `#optional` \ - -e CLI_OPTIONS=--config node.enable_voting=true `#optional` \ - -e LMDB_BOOTSTRAP_URL=http://example.com/Nano_64_version_20.7z `#optional` \ - -p 8075:8075 \ - -p 7076:3000 \ - -p 7077:3001 \ - -v /path/to/data:/config \ - --restart unless-stopped \ - linuxserver/nano -``` - - -### docker-compose +### docker-compose ([recommended](https://docs.linuxserver.io/general/docker-compose)) Compatible with docker-compose v2 schemas. @@ -94,6 +70,30 @@ services: restart: unless-stopped ``` +### docker cli + +``` +docker run -d \ + --name=nano \ + -e PUID=1000 \ + -e PGID=1000 \ + -e TZ=Europe/London \ + -e PEER_HOST=localhost `#optional` \ + -e LIVE_GENESIS_PUB=GENESIS_PUBLIC `#optional` \ + -e LIVE_GENESIS_ACCOUNT=nano_xxxxxx `#optional` \ + -e LIVE_GENESIS_WORK=WORK_FOR_BLOCK `#optional` \ + -e LIVE_GENESIS_SIG=BLOCK_SIGNATURE `#optional` \ + -e CLI_OPTIONS=--config node.enable_voting=true `#optional` \ + -e LMDB_BOOTSTRAP_URL=http://example.com/Nano_64_version_20.7z `#optional` \ + -p 8075:8075 \ + -p 7076:3000 \ + -p 7077:3001 \ + -v /path/to/data:/config \ + --restart unless-stopped \ + linuxserver/nano +``` + + ## Parameters Docker images are configured using parameters passed at runtime (such as those above). These parameters are separated by a colon and indicate `:` respectively. For example, `-p 8080:80` would expose port `80` from inside the container to be accessible from the host's IP on port `8080` outside the container. @@ -350,9 +350,9 @@ docker create \ ## Docker Mods -[![Docker Mods](https://img.shields.io/badge/dynamic/yaml?color=94398d&labelColor=555555&logoColor=ffffff&style=for-the-badge&label=mods&query=%24.mods%5B%27nano%27%5D.mod_count&url=https%3A%2F%2Fraw.githubusercontent.com%2Flinuxserver%2Fdocker-mods%2Fmaster%2Fmod-list.yml)](https://mods.linuxserver.io/?mod=nano "view available mods for this container.") +[![Docker Mods](https://img.shields.io/badge/dynamic/yaml?color=94398d&labelColor=555555&logoColor=ffffff&style=for-the-badge&label=nano&query=%24.mods%5B%27nano%27%5D.mod_count&url=https%3A%2F%2Fraw.githubusercontent.com%2Flinuxserver%2Fdocker-mods%2Fmaster%2Fmod-list.yml)](https://mods.linuxserver.io/?mod=nano "view available mods for this container.") [![Docker Universal Mods](https://img.shields.io/badge/dynamic/yaml?color=94398d&labelColor=555555&logoColor=ffffff&style=for-the-badge&label=universal&query=%24.mods%5B%27universal%27%5D.mod_count&url=https%3A%2F%2Fraw.githubusercontent.com%2Flinuxserver%2Fdocker-mods%2Fmaster%2Fmod-list.yml)](https://mods.linuxserver.io/?mod=universal "view available universal mods.") -We publish various [Docker Mods](https://github.com/linuxserver/docker-mods) to enable additional functionality within the containers. The list of Mods available for this image (if any) can be accessed via the dynamic badge above. +We publish various [Docker Mods](https://github.com/linuxserver/docker-mods) to enable additional functionality within the containers. The list of Mods available for this image (if any) as well as universal mods that can be applied to any one of our images can be accessed via the dynamic badges above. ## Support Info