update spearhead-docker to use triton-docker

This commit is contained in:
Marius Pana 2023-05-18 11:25:05 +03:00
parent 7d74b999aa
commit 935dabb450
2 changed files with 9 additions and 9 deletions

View File

@ -1,7 +1,7 @@
# Spearhead Docker CLI
## Overview
The Spearhead Docker CLI tool installs compatible versions of the Docker and Docker Compose CLI known to work with the Spearhead Cloud. While the Spearhead Cloud supports most of the features from [Docker's 1.22](https://docs.docker.com/engine/api/v1.22/) spec there are some exceptions:
The Triton Docker CLI tool installs compatible versions of the Docker and Docker Compose CLI known to work with the Spearhead Cloud. While the Spearhead Cloud supports most of the features from [Docker's 1.22](https://docs.docker.com/engine/api/v1.22/) spec there are some exceptions:
* docker build: building Docker images using the Spearhead Cloud Docker Host is not supported. Use your own local environment for building.
* docker network: Spearhead Cloud supports many enhanced network concepts which are not available in Docker however you will have to use the Cloud Portal, the Spearhead CLI tool or the CloudAPI to manage them for now.
@ -11,7 +11,7 @@ The Spearhead Docker CLI tool installs compatible versions of the Docker and Doc
* docker events: there are no plans to implement this feature
### Volumes
*spearhead-docker* volumes commands and concepts are different from Docker Inc's:
*triton-docker* volumes commands and concepts are different from Docker Inc's:
* there is a limit of 8 'data' volumes per container
* 'host' volumes (/hostpath:/containerpath) are not supported
@ -21,20 +21,20 @@ The Spearhead Docker CLI tool installs compatible versions of the Docker and Doc
* When you use --volumes-from, volumes that don't belong to the container specified (including those that this container is sharing from others) are ignored. Only volumes belonging to the specified container will be considered.
## Installation
The following script will configure the Docker tools for use with the Spearhead Cloud. While you can use the native docker tools to communicate with the Spearhead Cloud Docker host we recommend using the spearhead-docker CLI tool as it takes into consideration deviations from the standard Docker API and will handle things accordingly.
The following script will configure the Docker tools for use with the Spearhead Cloud. While you can use the native docker tools to communicate with the Spearhead Cloud Docker host we recommend using the triton-docker CLI tool as it takes into consideration deviations from the standard Docker API and will handle things accordingly.
The following script will leave your current Docker tools alone making it easy and convenient to switch between them.
```
sudo bash -c 'curl -o /usr/local/bin/spearhead-docker https://code.spearhead.cloud/Spearhead/spearhead-docker-cli/raw/branch/master/spearhead-docker && chmod +x /usr/local/bin/spearhead-docker && ln -Fs /usr/local/bin/spearhead-docker /usr/local/bin/spearhead-compose && ln -Fs /usr/local/bin/spearhead-docker /usr/local/bin/spearhead-docker-install'
ssudo bash -c 'curl -o /usr/local/bin/triton-docker https://raw.githubusercontent.com/joyent/triton-docker-cli/master/triton-docker && chmod +x /usr/local/bin/triton-docker && ln -Fs /usr/local/bin/triton-docker /usr/local/bin/triton-compose && ln -Fs /usr/local/bin/triton-docker /usr/local/bin/triton-docker-install'
```
That command will install the spearhead-docker shell script and link it as spearhead-compose and spearhead-docker-install.
That command will install the triton-docker shell script and link it as triton-compose and triton-docker-install.
To complete the installation, run *sudo spearhead-docker-install* to install the platform-specific versions of the Docker (now Moby) and Docker Compose CLI tools. These versions will not replace any existing Docker or Docker Compose versions you may have installed.
To complete the installation, run *sudo triton-docker-install* to install the platform-specific versions of the Docker (now Moby) and Docker Compose CLI tools. These versions will not replace any existing Docker or Docker Compose versions you may have installed.
## Usage
Once installed, use *spearhead-docker* and *spearhead-compose* in place of docker and docker-compose when interacting with the Spearhead Cloud.
Once installed, use *triton-docker* and *triton-compose* in place of docker and docker-compose when interacting with the Spearhead Cloud.
> Last edit: 2018 Thu 26 Jul 19:48 GMT+3
> Last edit: Thu May 18 11:23:54 EEST 2023

View File

@ -17,7 +17,7 @@ nav:
- Spearhead Cloud Tools:
- Cloud Portal: cloud-portal.md
- Spearhead CLI: triton-cli.md
- Spearhead Docker CLI: docker/spearhead-docker-cli.md
- Spearhead Docker CLI: docker/triton-docker-cli.md
- Docker:
- Docker Remote API implementation for Spearhead Cloud: docker/docker-remote-api.md
- Featues: