Created
March 15, 2022 12:03
-
-
Save zhangw/8992a04fa062deee90b4da89ea675580 to your computer and use it in GitHub Desktop.
container cli (docker) alias in makefile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CONTAINER_CLI=docker | |
CONTAINER_CLI_VER:=$(shell docker --version 2>/dev/null) | |
ifndef DOCKER_CLI_VER | |
CONTAINER_CLI_VER:=$(shell lima -v 2>/dev/null) | |
endif | |
ifdef CONTAINER_CLI_VER | |
CONTAINER_CLI=lima nerdctl | |
endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment