kubernetes-plugin
Jenkins plugin to run dynamic agents in a Kubernetes/Docker environment
File Explorer
- auto-merge-safe-deps.yml
- cd.yaml
- close-bom-if-passing.yml
- jenkins-security-scan.yml
- autolabeler.yaml
- CODEOWNERS
- renovate.json
- extensions.xml
- maven.config
- Jenkinsfile
- KubernetesPod.yaml
- containerLog.groovy
- dind.groovy
- dood.groovy
- kaniko-declarative.groovy
- kaniko-gcr.groovy
- kaniko.groovy
- maven-with-cache-pvc.yml
- maven-with-cache.groovy
- multi-container.groovy
- openshift-home-yaml.groovy
- README.md
- selenium.groovy
- cloud-configuration.png
- garbage-collection.png
- mypod-1-general.png
- mypod-2-golang.png
- mypod-3-maven.png
- pod-template-configuration.png
- master-executors.groovy
- NoDelayProvisionerStrategy.java
- KeyValueEnvVar.java
- SecretEnvVar.java
- TemplateEnvVar.java
- AbstractInvisibleRunAction2.java
- Constants.java
- ContainerExecDecorator.java
- ContainerExecProc.java
- ContainerListenDecorator.java
- ContainerLogStep.java
- ContainerLogStepExecution.java
- ContainerStep.java
- ContainerStepExecution.java
- KubernetesAgentErrorCondition.java
- KubernetesDeclarativeAgent.java
- KubernetesNodeContext.java
- KubernetesSamples.java
- NamespaceAction.java
- PodTemplateAction.java
- PodTemplateContext.java
- PodTemplateMap.java
- PodTemplateStep.java
- PodTemplateStepExecution.java
- Resources.java
- SecretsMasker.java
- DefaultNodeSelector.java
- DefaultRestartPolicy.java
- DefaultWorkspaceVolume.java
- PodDecorator.java
- PodDecoratorException.java
- Always.java
- Default.java
- Evicted.java
- Never.java
- OnFailure.java
- PodOfflineCause.java
- PodRetention.java
- PodRetentionDescriptor.java
- Reaper.java
- Merge.java
- Overrides.java
- YamlMergeStrategy.java
- DynamicPVCWorkspaceVolume.java
- EmptyDirWorkspaceVolume.java
- GenericEphemeralWorkspaceVolume.java
- HostPathWorkspaceVolume.java
- NfsWorkspaceVolume.java
- PersistentVolumeClaimWorkspaceVolume.java
- WorkspaceVolume.java
- ConfigMapVolume.java
- DynamicPVC.java
- DynamicPVCVolume.java
- EmptyDirVolume.java
- EphemeralVolume.java
- GenericEphemeralVolume.java
- HostPathVolume.java
- NfsVolume.java
- PersistentVolumeClaim.java
- PodVolume.java
- ProvisionedVolume.java
- PVCVolumeUtils.java
- SecretVolume.java
- PodStatusEventHandler.java
- ContainerEnvVar.java
- ContainerLivenessProbe.java
- ContainerTemplate.java
- DefaultInProvisioning.java
- EventsAction.java
- GarbageCollection.java
- InProvisioning.java
- KubectlBuildWrapper.java
- KubernetesClientProvider.java
- KubernetesCloud.java
- KubernetesCloudTrait.java
- KubernetesCloudTraitDescriptor.java
- KubernetesComputer.java
- KubernetesComputerFactory.java
- KubernetesFactoryAdapter.java
- KubernetesFolderProperty.java
- KubernetesLauncher.java
- KubernetesProvisioningLimits.java
- KubernetesQueueTaskDispatcher.java
- KubernetesSlave.java
- LimitRegistrationResults.java
- MetricNames.java
- NonConfigurableKubernetesCloud.java
- OpenShiftBearerTokenCredentialImpl.java
- OpenShiftTokenCredentialImpl.java
- PlannedNodeBuilder.java
- PlannedNodeBuilderFactory.java
- PodAnnotation.java
- PodContainerSource.java
- PodEnvVar.java
- PodImagePullSecret.java
- PodLabel.java
- PodLogAction.java
- PodTemplate.java
- PodTemplateBuilder.java
- PodTemplateFilter.java
- PodTemplateGroup.java
- PodTemplateLabelFilter.java
- PodTemplateSource.java
- PodTemplateToolLocation.java
- PodTemplateUtils.java
- PodUtils.java
- PodVolumes.java
- PortMapping.java
- RestrictedPssSecurityContextInjector.java
- Serialization2.java
- ServiceAccountCredential.java
- StandardPlannedNodeBuilder.java
- TaskListenerEventWatcher.java
- TokenProducer.java
- jenkins.yml
- service-account.yml
- config.jelly
- config_zh_CN.properties
- help-execArgs.html
- help-failureThreshold.html
- help-initialDelaySeconds.html
- help-periodSeconds.html
- help-successThreshold.html
- help-timeoutSeconds.html
- config.jelly
- config_zh_CN.properties
- help-alwaysPullImage.html
- help-args.html
- help-command.html
- help-envVars.html
- help-image.html
- help-name.html
- help-privileged.html
- help-resourceLimitCpu.html
- help-resourceLimitMemory.html
- help-resourceRequestCpu.html
- help-resourceRequestMemory.html
- help-runAsGroup.html
- help-runAsUser.html
- help-ttyEnabled.html
- help-workingDir.html
- index.jelly
- config.jelly
- help-namespaces.html
- config.jelly
- config_zh_CN.properties
- help-caCertificate.html
- help-serverUrl.html
- help.html
- config.jelly
- config_zh_CN.properties
- help-activeContainers.html
- help-addMasterProxyEnvVars.html
- help-connectTimeout.html
- help-containerCapStr.html
- help-defaultsProviderTemplate.html
- help-directConnection.html
- help-garbageCollection.html
- help-jenkinsTunnel.html
- help-jenkinsUrl.html
- help-jnlpregistry.html
- help-maxRequestsPerHostStr.html
- help-name.html
- help-password.html
- help-podLabels.html
- help-podRetention.html
- help-readTimeout.html
- help-restrictedPssSecurityContext.html
- help-retentionTimeout.html
- help-serverCertificate.html
- help-serverUrl.html
- help-skipTlsVerify.html
- help-usageRestricted.html
- help-useJenkinsProxy.html
- help-username.html
- help-waitForPodSec.html
- help-webSocket.html
- new.jelly
- sidepanel.jelly
- sidepanel.properties
- templates.jelly
- container.jelly
- sidepanel2.jelly
- config.jelly
- config_zh_CN.properties
- configure-entries.jelly
- configure-entries_zh_CN.properties
- config.jelly
- config_zh_CN.properties
- help-key.html
- help-value.html
- config.jelly
- config_zh_CN.properties
- help-key.html
- help-optional.html
- help-secretKey.html
- help-secretName.html
- config.jelly
- config.jelly
- help-limitBytes.html
- help-name.html
- help-returnLog.html
- help-sinceSeconds.html
- help-tailingLines.html
- config.jelly
- help-shell.html
- help.html
- config.jelly
- help-handleNonKubernetes.html
- help.html
- config.jelly
- help-customWorkspace.html
- help-defaultContainer.html
- config.jelly
- help-cloud.html
- help-label.html
- help.html
- declarative.groovy
- maven.groovy
- windows.groovy
- container-bootstrap.sh
- kill-process-by-id.ps1
- kill-processes-with-cookie.ps1
- ProcessEnvironmentReader.cs
- KubernetesDeclarativeAgentScript.groovy
- Messages.properties
- Messages.properties
- Messages_zh_CN.properties
- config.jelly
- config.jelly
- config.jelly
- config_zh_CN.properties
- help-key.html
- help-value.html
- config.jelly
- config_zh_CN.properties
- help-name.html
- config.jelly
- config_zh_CN.properties
- help-key.html
- help-value.html
- index.jelly
- config.jelly
- config_zh_CN.properties
- help-activeDeadlineSeconds.html
- help-agentContainer.html
- help-agentInjection.html
- help-annotations.html
- help-containers.html
- help-envVars.html
- help-hostNetwork.html
- help-idleMinutes.html
- help-imagePullSecrets.html
- help-inheritFrom.html
- help-inheritYamlMergeStrategy.html
- help-instanceCap.html
- help-label.html
- help-name.html
- help-namespace.html
- help-nodeSelector.html
- help-podRetention.html
- help-runAsGroup.html
- help-runAsUser.html
- help-serviceAccount.html
- help-showRawYaml.html
- help-slaveConnectTimeout.html
- help-supplementalGroups.html
- help-volumes.html
- help-workingDir.html
- help-workspaceVolume.html
- help-yaml.html
- help-yamlMergeStrategy.html
- index.jelly
- sidepanel.jelly
- sidepanel.properties
- config.jelly
- config_zh_CN.properties
- help-containerPort.html
- help-hostPort.html
- help-name.html
- credentials.jelly
- config.jelly
- config_zh_CN.properties
- help-configMapName.html
- help-optional.html
- config.jelly
- config.jelly
- config_zh_CN.properties
- help-memory.html
- config.jelly
- config.jelly
- config_zh_CN.properties
- help-hostPath.html
- help-readOnly.html
- config.jelly
- config_zh_CN.properties
- help-serverAddress.html
- help-serverPath.html
- config.jelly
- config_zh_CN.properties
- help-claimName.html
- help-readOnly.html
- help-accessModes.html
- help-mountPath.html
- help-requestsSize.html
- help-storageClassName.html
- help-subPath.html
- config.jelly
- config_zh_CN.properties
- help-defaultMode.html
- help-optional.html
- help-secretName.html
- config.jelly
- config.jelly
- config_zh_CN.properties
- help-memory.html
- help-sizeLimit.html
- config.jelly
- config.jelly
- config_zh_CN.properties
- help-hostPath.html
- config.jelly
- config_zh_CN.properties
- help-serverAddress.html
- help-serverPath.html
- config.jelly
- config_zh_CN.properties
- help-claimName.html
- help-readOnly.html
- help-accessModes.html
- help-requestsSize.html
- help-storageClassName.html
- Dockerfile
- Messages.properties
- Messages_zh_CN.properties
- index.jelly
- kubernetes.png
- kubernetes.png
- kubernetes.png
- excludesFilter.xml
- CasCTest.java
- EnvVarCasCTest.java
- VolumeCasCTest.java
- WorkspaceVolumeCasCTest.java
- AssertBuildLogMessage.java
- AssertBuildStatusSuccess.java
- CreateWorkflowJobThenScheduleRun.java
- CreateWorkflowJobThenScheduleTask.java
- package-info.java
- RunId.java
- SetupCloud.java
- AbstractKubernetesPipelineRJRTest.java
- AbstractKubernetesPipelineTest.java
- ContainerExecDecoratorPipelineTest.java
- ContainerExecDecoratorTest.java
- ContainerExecDecoratorWindowsTest.java
- ContainerListenDecoratorTest.java
- ContainerLogStepTest.java
- DirectConnectionTest.java
- KubernetesAgentErrorConditionTest.java
- KubernetesDeclarativeAgentRJRTest.java
- KubernetesDeclarativeAgentTest.java
- KubernetesDeclarativeAgentUnitTest.java
- KubernetesNodeContextTest.java
- KubernetesPipelineOverriddenNamespaceTest.java
- KubernetesPipelineRJRTest.java
- KubernetesPipelineTest.java
- KubernetesPipelineWebsocketRJRTest.java
- KubernetesSamplesTest.java
- NoDelayProvisionerStrategyTest.java
- PodNameTest.java
- PodProvisioningStatusLogsTest.java
- PodTemplateStepExecutionTest.java
- PodTemplateStepTest.java
- ResourcesTest.java
- RestartPipelineTest.java
- WebSocketTest.java
- PodDecoratorTest.java
- PodRetentionTest.java
- ReaperTest.java
- GenericEphemeralWorkspaceVolumeTest.java
- GenericEphemeralVolumeTest.java
- AbstractGoldenFileTest.java
- ClientAuthenticationTest.java
- ConfigMapVolumeTest.java
- ContainerTemplateTest.java
- KubectlBuildWrapperTest.java
- KubernetesClientProviderTest.java
- KubernetesCloudFIPSTest.java
- KubernetesCloudTest.java
- KubernetesCloudTraitTest.java
- KubernetesFactoryAdapterTest.java
- KubernetesFolderPropertyTest.java
- KubernetesLauncherTest.java
- KubernetesProvisioningLimitsTest.java
- KubernetesQueueTaskDispatcherTest.java
- KubernetesRestartTest.java
- KubernetesSlaveTest.java
- KubernetesTest.java
- KubernetesTestUtil.java
- MetricNamesTest.java
- NonConfigurableKubernetesCloudTest.java
- PodContainerSourceTest.java
- PodEnvVarTest.java
- PodTemplateBuilderTest.java
- PodTemplateFilterTest.java
- PodTemplateJenkinsTest.java
- PodTemplateMapTest.java
- PodTemplateTest.java
- PodTemplateUtilsTest.java
- PodUtilsTest.java
- RestrictedPssSecurityInjectorTest.java
- TaskListenerEventWatcherTest.java
- org.mockito.plugins.MockMaker
- casc_envVar_keyValue.yaml
- casc_envVar_secret.yaml
- casc_volume_configMap.yaml
- casc_volume_emptyDir.yaml
- casc_volume_emptyDir_memory.yaml
- casc_volume_genericEphemeral.yaml
- casc_volume_hostPath.yaml
- casc_volume_nfs.yaml
- casc_volume_pvc.yaml
- casc_workspaceVolume_dynamicPVC.yaml
- casc_workspaceVolume_emptyDir.yaml
- casc_workspaceVolume_emptyDir_memory.yaml
- casc_workspaceVolume_genericEphemeral.yaml
- casc_workspaceVolume_hostPath.yaml
- casc_workspaceVolume_nfs.yaml
- casc_workspaceVolume_pvc.yaml
- configuration-as-code.yaml
- dsa1024
- dsa2048
- ecdsa192
- ecdsa224
- not-a-cert
- rsa1024
- rsa2048
- config.xml
- config.xml
- config.xml
- config.xml
- config.xml
- config.xml
- config.xml
- config.xml
- credentials.xml
- config.xml
- credentials.xml
- config.xml
- credentials.xml
- config.xml
- config.xml
- config.xml
- credentials.xml
- activeContainerCustomWorkingDir.groovy
- activeContainerInterruptedPod.groovy
- activeContainerPassiveSidecar.groovy
- activeContainerSmokes.groovy
- badcontainername.groovy
- badcontainernameyaml.groovy
- basicPipeline.groovy
- basicWindows.groovy
- bourneShellElsewhereInPath.groovy
- cancelOnlyRelevantQueueItem.groovy
- cascadingDelete.groovy
- closedWebSocketExit.groovy
- computerCantBeConfigured.groovy
- containerEnvironmentIsHonored.groovy
- containerStatusErrorLogs.groovy
- containerTerminated.groovy
- declarative.groovy
- declarativeCustomWorkingDir.groovy
- declarativeCustomWorkspace.groovy
- declarativeFromYaml.groovy
- declarativeFromYamlFile.groovy
- declarativeFromYamlWithNullEnv.groovy
- declarativeRetries.groovy
- declarativeShowRawYamlFalse.groovy
- declarativeWithCreateContainerError.groovy
- declarativeWithNamespaceFromYaml.groovy
- declarativeWithNestedExplicitInheritance.groovy
- declarativeWithNonexistentDockerImage.groovy
- declarativeYamlFile.yml
- decoratorFailure.groovy
- directConnectionAgent.groovy
- docker.groovy
- dynamicPVCVolume.groovy
- dynamicPVCWorkspaceVolume.groovy
- envVarDollarSignEscaping.groovy
- errorPod.groovy
- garbageCollection.groovy
- getContainerLog.groovy
- getContainerLogWithRestart.groovy
- handleEviction.groovy
- id_rsa
- imageWithoutAgent.groovy
- imageWithoutAgentNoJava.groovy
- inheritFrom.groovy
- interruptedPod.groovy
- interruptedPodWindows.groovy
- invalidImageGetsCancelled.groovy
- invalidPodGetsCancelled.groovy
- jenkinsSecretHidden.groovy
- jnlpWorkingDir.groovy
- killsProcessesWindows.groovy
- mergeYaml.groovy
- noDelayProvisionerCallsListener.groovy
- nullLabelSupportsRestart.groovy
- octalPermissions.groovy
- overrideYaml.groovy
- podDeadlineExceeded.groovy
- podDeadlineExceededGlobalTemplate.groovy
- podStatusErrorLogs.groovy
- podStatusNoErrorLogs.groovy
- podTemplateWithMultipleLabels.groovy
- restartDuringPodLaunch.groovy
- runDirContext.groovy
- runIn2Pods.groovy
- runInDynamicallyCreatedContainer.groovy
- runInPod.groovy
- runInPodFromYaml.groovy
- runInPodNested.groovy
- runInPodNestedExplicitInherit.groovy
- runInPodWithDifferentShell.groovy
- runInPodWithExistingTemplate.groovy
- runInPodWithLivenessProbe.groovy
- runInPodWithMultipleContainers.groovy
- runInPodWithRestart.groovy
- runInPodWithRestartWithLongSleep.groovy
- runInPodWithRestartWithMultipleContainerCalls.groovy
- runInPodWithRetention.groovy
- runInPodWithShowRawYamlFalse.groovy
- runWithActiveDeadlineSeconds.groovy
- runWithCloudOverriddenNamespace.groovy
- runWithEnvVariables.groovy
- runWithEnvVariablesInContext.groovy
- runWithOverriddenEnvVariables.groovy
- runWithStepOverriddenNamespace.groovy
- secretMaskingWindows.groovy
- showRawYamlFalseInherited.groovy
- sidecarWorkingDir.groovy
- sshagent.groovy
- substituteEnv.groovy
- supportComputerEnvVars.groovy
- taskListenerAfterRestart.groovy
- taskListenerAfterRestart_multipleLabels.groovy
- terminatedPod.groovy
- terminatedPodAfterRestart.groovy
- webSocketAgent.groovy
- windowsContainer.groovy
- windowsRestart.groovy
- decimal.yaml
- octal.yaml
- agentInjection-after.yaml
- agentInjection-before.yaml
- existingSecurityContext-after.yaml
- existingSecurityContext-before.yaml
- multiContainer-after.yaml
- multiContainer-before.yaml
- simple-after.yaml
- simple-before.yaml
- kubectlBuildWrapper_invalidCredentials.groovy
- kubectlBuildWrapper_missingCredentials.groovy
- pod-busybox.yaml
- pod-jnlp-nullenv.yaml
- pod-overrides.yaml
- kubeconfig
- kubenamespace
- .dockerignore
- .git-blame-ignore-revs
- .gitignore
- CHANGELOG-archive.md
- CLAUDE.md
- configuration.png
- credentials.png
- Dockerfile
- Jenkinsfile
- kind-preload.sh
- kind.sh
- LICENSE
- pom.xml
- README.md
# Use via CDN
jsDelivrjsDelivr serves any public GitHub repository as a CDN with zero setup. Pick a version and a file to get a ready-to-paste link and snippet.
Command Glossary
Commands referenced in this DOCs, explained below.
docker build
View Details ▼
docker build
Build an image from a Dockerfile.
docker build .
Build a Docker image using the Dockerfile in the current directory:
docker build {{github.com/creack/docker-firefox}}
Build a Docker image from a Dockerfile at a specified URL:
docker build {{[-t|--tag]}} {{name:tag}} .
Build a Docker image and tag it:
docker run
View Details ▼
docker run
This command is an alias of `docker container run`.
tldr docker container run
View documentation for the original command:
gcloud container
View Details ▼
gcloud container
Manage containerized applications on Kubernetes and clusters.
See also: `gcloud`.
gcloud auth configure-docker
Register `gcloud` as a Docker credential helper:
gcloud container clusters create {{cluster_name}}
Create a cluster to run GKE containers:
gcloud container clusters list
List clusters for running GKE containers:
git
View Details ▼
git
Distributed version control system.
Some subcommands such as `commit`, `add`, `branch`, `switch`, `push`, etc. have their own usage documentation.
git init
Create an empty Git repository:
git clone {{https://example.com/repo.git}}
Clone a remote Git repository from the internet:
git status
View the status of the local repository:
kind
View Details ▼
kind
Run local Kubernetes clusters using Docker container "nodes".
Designed for testing Kubernetes itself, but may be used for local development or continuous integration.
kind create cluster --name {{cluster_name}}
Create a local Kubernetes cluster:
kind delete clusters {{cluster_name}}
Delete one or more clusters:
kind get {{clusters|nodes|kubeconfig}}
Get details about clusters, nodes, or the kubeconfig:
kubectl config
View Details ▼
kubectl config
Manage Kubernetes configuration (kubeconfig) files for accessing clusters via `kubectl` or the Kubernetes API.
By default, the Kubernetes will get its configuration from `${HOME}/.kube/config`.
See also: `kubectx`, `kubens`.
kubectl config get-contexts
Get all contexts in the default kubeconfig file:
kubectl config {{get-clusters|get-contexts|get-users}} --kubeconfig {{path/to/kubeconfig.yaml}}
Get all clusters/contexts/users in a custom kubeconfig file:
kubectl config current-context
Get the current context:
kubectl create
View Details ▼
kubectl create
Create a resource from a file or from `stdin`.
kubectl create {{[-f|--filename]}} {{path/to/file.yml}}
Create a resource using the resource definition file:
kubectl create {{[-f|--filename]}} -
Create a resource from `stdin`:
kubectl create {{[deploy|deployment]}} {{deployment_name}} --image {{image}}
Create a deployment:
kubectl delete
View Details ▼
kubectl delete
Delete Kubernetes resources.
kubectl delete {{[po|pods]}} {{pod_name}}
Delete a specific pod:
kubectl delete {{[deploy|deployments]}} {{deployment_name}}
Delete a specific deployment:
kubectl delete {{[no|nodes]}} {{node_name}}
Delete a specific node:
kubectl describe
View Details ▼
kubectl describe
Show details of Kubernetes resources.
kubectl describe {{[po|pods]}} {{[-n|--namespace]}} {{namespace}}
Show details of pods in a namespace:
kubectl describe {{[no|nodes]}} {{[-n|--namespace]}} {{namespace}}
Show details of nodes in a namespace:
kubectl describe {{[po|pods]}} {{pod_name}} {{[-n|--namespace]}} {{namespace}}
Show the details of a specific pod in a namespace:
kubectl get
View Details ▼
kubectl get
Get Kubernetes objects and resources.
kubectl get {{[ns|namespaces]}}
Get all namespaces in the current cluster:
kubectl get {{[no|nodes]}} {{[-n|--namespace]}} {{namespace}}
Get nodes in a specified namespace:
kubectl get {{[po|pods]}} {{[-n|--namespace]}} {{namespace}}
Get pods in a specified namespace:
kubectl krew
View Details ▼
kubectl krew
Plugin manager for `kubectl`.
See also: `kubectl-plugin`.
kubectl krew search
Search for available plugins:
kubectl krew install {{plugin_name}}
Install a plugin:
kubectl krew list
List installed plugins:
kubectl logs
View Details ▼
kubectl logs
Show logs for containers in a pod.
kubectl logs {{pod_name}}
Show logs for a single-container pod:
kubectl logs {{[-c|--container]}} {{container_name}} {{pod_name}}
Show logs for a specified container in a pod:
kubectl logs --all-containers={{true}} {{pod_name}}
Show logs for all containers in a pod:
kubectl
View Details ▼
kubectl
Run commands against Kubernetes clusters.
Some subcommands such as `run` have their own usage documentation.
kubectl get {{pods|service|deployment|ingress|...}} {{[-o|--output]}} wide
List information about a resource with more details:
kubectl label pods {{name}} unhealthy=true
Update specified pod with the label `unhealthy` and the value `true`:
kubectl get all
List all resources with different types:
minikube start
View Details ▼
minikube start
Start `minikube` with different configurations.
minikube start --kubernetes-version {{v1.24.0}}
Start `minikube` with a specific Kubernetes version:
minikube start --memory {{2048}} --cpus {{2}}
Start `minikube` with specific resource allocations (e.g., memory and CPU):
minikube start --driver {{virtualbox}}
Start `minikube` with a specific driver (e.g., VirtualBox):
minikube
View Details ▼
minikube
Run Kubernetes locally.
minikube start
Start the cluster:
minikube ip
Get the IP address of the cluster:
minikube service {{my_service}} --url
Access a service named `my_service` exposed via a node port and get the URL:
mvn
View Details ▼
mvn
Apache Maven: build and manage Java-based projects.
mvn compile
Compile a project:
mvn package
Compile and package the compiled code in its distributable format, such as a `jar`:
mvn package {{[-D|--define]}} skipTests
Compile and package, skipping unit tests:
node
View Details ▼
node
Server-side JavaScript platform (Node.js).
node {{path/to/file}}
Run a JavaScript file:
node
Start a REPL (interactive shell):
node --watch {{path/to/file}}
Execute the specified file restarting the process when an imported file is changed (requires Node.js version 18.11+):
openssl
View Details ▼
openssl
OpenSSL cryptographic toolkit.
Some subcommands such as `req` have their own usage documentation.
openssl genpkey -algorithm {{rsa|ec}} -out {{path/to/private.key}} -aes256
Generate a private key and encrypt the output file using AES-256:
openssl rsa -in {{path/to/private.key}} -pubout -out {{path/to/public.key}}
Generate the corresponding public key from the private key `private.key` using `rsa`:
openssl req -new -x509 -key {{path/to/private.key}} -out {{path/to/certificate.crt}} -days 365
Generate a self-signed certificate valid for a specified number of days (365):
container
View Details ▼
container
Create and run Linux containers as lightweight virtual machines on macOS.
container system start
Start the container services (required before running containers):
container run --rm {{[-it|--interactive --tty]}} {{image}} {{sh}}
Run a container from an image interactively and remove it after it exits:
container run {{[-d|--detach]}} --name {{container_name}} {{[-p|--publish]}} {{8080:80}} {{image}}
Run a container in the background with a name and a published port:
