You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In newer versions of docker, the docker build command supports the use of the --network parameter to specify the network to use when executing RUN commands in the Dockerfile.
Please add support to the Portainer UI to allow selection of an existing network when building an image using the web UI.
An example use case scenario would be that you have an internal Linux repo server running as a docker service, and you need the new image build to be able to reference the service by name using docker internal service DNS. Without specifying the network to use for RUN commands (--network), the DNS request for the repo URL will not resolve.
This discussion was converted from issue #4960 on July 27, 2023 04:32.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
In newer versions of docker, the docker build command supports the use of the --network parameter to specify the network to use when executing RUN commands in the Dockerfile.
Please add support to the Portainer UI to allow selection of an existing network when building an image using the web UI.
An example use case scenario would be that you have an internal Linux repo server running as a docker service, and you need the new image build to be able to reference the service by name using docker internal service DNS. Without specifying the network to use for RUN commands (--network), the DNS request for the repo URL will not resolve.
docker build
Beta Was this translation helpful? Give feedback.
All reactions