mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
docker.com/cli (#2639)
* docker.com/cli * modified: projects/docker.com/cli/package.yml * modified: projects/docker.com/cli/package.yml * docker context use colima & debug * --arch * context list * colima start with profile name * --very-verbose * modified: projects/docker.com/cli/package.yml * cat $HOME/.lima/colima/serial.log * Update package.yml * --runtime docker * --verbose * only ver * readme * -deps
This commit is contained in:
parent
310e1641c0
commit
a1f1d8ce6c
2 changed files with 66 additions and 0 deletions
31
projects/docker.com/cli/README.md
Normal file
31
projects/docker.com/cli/README.md
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
# Running with Colima
|
||||||
|
Colima is a lightweight and straightforward command-line tool that simplifies the management of Docker on macOS. This guide will walk you through the steps to set up and run Docker using Colima.
|
||||||
|
|
||||||
|
|
||||||
|
## Starting Colima
|
||||||
|
|
||||||
|
To start Colima, simply execute:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
colima start <name>
|
||||||
|
```
|
||||||
|
|
||||||
|
## Setting socket
|
||||||
|
`docker context use colima-<name>`
|
||||||
|
|
||||||
|
## Using Docker with Colima
|
||||||
|
|
||||||
|
Now that Colima is running, you can use Docker commands directly from your terminal just like you would with a regular Docker installation. For example, to pull and run a Docker container:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker pull nginx
|
||||||
|
docker run -d -p 80:80 nginx
|
||||||
|
```
|
||||||
|
|
||||||
|
## Stopping Colima
|
||||||
|
|
||||||
|
When you're done using Docker with Colima, you can stop Colima and shut down Docker Desktop by running:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
colima stop
|
||||||
|
```
|
35
projects/docker.com/cli/package.yml
Normal file
35
projects/docker.com/cli/package.yml
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
distributable:
|
||||||
|
url: https://github.com/docker/cli/archive/v{{version}}.tar.gz
|
||||||
|
strip-components: 1
|
||||||
|
versions:
|
||||||
|
github: docker/cli/tags
|
||||||
|
build:
|
||||||
|
dependencies:
|
||||||
|
go.dev: '*'
|
||||||
|
github.com/cpuguy83/go-md2man: '*'
|
||||||
|
script:
|
||||||
|
- mkdir -p ./src/github.com/docker
|
||||||
|
- ln -sf $GOPATH $GOPATH/src/github.com/docker/cli
|
||||||
|
- run: |
|
||||||
|
go build $ARGS -ldflags=" \
|
||||||
|
-X \"github.com/docker/cli/cli/version.BuildTime=$(date "+%Y-%m-%dT%H:%M:%S%z")\" \
|
||||||
|
-X github.com/docker/cli/cli/version.Version={{version}} \
|
||||||
|
-X \"github.com/docker/cli/cli/version.PlatformName=Docker Engine - Community\" \
|
||||||
|
" github.com/docker/cli/cmd/docker
|
||||||
|
- run: |
|
||||||
|
for md in man/*.[1-8].md; do
|
||||||
|
section=$(basename "$md" | sed 's/.*\.\([1-8]\)\.md/\1/')
|
||||||
|
mkdir -p "{{prefix}}/man/man${section}"
|
||||||
|
go-md2man -in="$md" -out="{{prefix}}/man/man${section}/$(basename "$md" .md)"
|
||||||
|
done
|
||||||
|
env:
|
||||||
|
GOPATH: $PWD
|
||||||
|
GO111MODULE: auto
|
||||||
|
ARGS:
|
||||||
|
- -trimpath
|
||||||
|
- -o={{prefix}}/bin/docker
|
||||||
|
provides:
|
||||||
|
- bin/docker
|
||||||
|
test:
|
||||||
|
script:
|
||||||
|
- docker --version | grep {{version}}
|
Loading…
Reference in a new issue