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:
Andrew 2023-08-01 19:59:16 +03:00 committed by GitHub
parent 310e1641c0
commit a1f1d8ce6c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 66 additions and 0 deletions

View 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
```

View 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}}