
Security News
Scaling Socket from Zero to 10,000+ Organizations
Socket CEO Feross Aboukhadijeh shares lessons from scaling a developer security startup to 10,000+ organizations in this founder interview.
@nx-tools/nx-container
Advanced tools
The @nx-tools/nx-container plugin streamlines container image workflows in Nx monorepos by providing a unified interface for multiple container build engines and automated image management capabilities.
To add the @nx-tools/nx-container plugin to your Nx workspace, run the following command:
npx nx add @nx-tools/nx-container
This command will:
nx.json fileThe plugin automatically detects projects suitable for containerization and adds a container task to any project containing a Dockerfile. This intelligent inference eliminates the need for manual task configuration in most cases.
To inspect the automatically inferred tasks for any project:
nx show project <project-name> to display project configuration and available tasksConfigure the @nx-tools/nx-container plugin in your workspace's nx.json file within the plugins array:
{
"plugins": [
{
"plugin": "@nx-tools/nx-container",
"options": {
"defaultEngine": "docker",
"defaultRegistry": "docker.io"
}
}
]
}
You can customize the default build engine and registry to match your infrastructure requirements:
{
"plugins": [
{
"plugin": "@nx-tools/nx-container",
"options": {
"defaultEngine": "podman",
"defaultRegistry": "ghcr.io"
}
}
]
}
Supported Engines:
docker (default) - Standard Docker builds with BuildKitpodman - Rootless container buildsCommon Registries:
docker.io - Docker Hub (default)ghcr.io - GitHub Container Registrygcr.io - Google Container Registrynx container appName
To use a different engine, you need to update the options.engine property of your project target or use the INPUT_ENGINE environment variable. All possible values are docker (the default) and podman
[!IMPORTANT] You can set docker or podman engine in your project.json targets to use in your dev machine, and use INPUT_ENGINE env variable to use docker in your CI/CD pipelines.
Advanced usage:
Usage with CI
Here is a list of all the executors and generators available from this package:
Join the growing Nx Tools community! We believe in building together and welcome contributors of all experience levels.
Your feedback and contributions help make Nx Tools better for everyone!
MIT License © Gustavo Perdomo
FAQs
<img a
The npm package @nx-tools/nx-container receives a total of 79,334 weekly downloads. As such, @nx-tools/nx-container popularity was classified as popular.
We found that @nx-tools/nx-container demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Socket CEO Feross Aboukhadijeh shares lessons from scaling a developer security startup to 10,000+ organizations in this founder interview.

Research
Socket Threat Research maps a rare inside look at OtterCookie’s npm-Vercel-GitHub chain, adding 197 malicious packages and evidence of North Korean operators.

Research
Socket researchers identified a malicious Chrome extension that manipulates Raydium swaps to inject an undisclosed SOL transfer, quietly routing fees to an attacker wallet.