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
Is showing up in ./launch/org.eclipse.cdt.docker.launcher/src/org/eclipse/cdt/internal/docker/launcher/messages.properties for the ContainerCommandLauncher_pullerr_noConn constant.
ContainerCommandLauncher_pullerr_noConn:
Only in one single place this is used: ./launch/org.eclipse.cdt.docker.launcher/src/org/eclipse/cdt/internal/docker/launcher/ContainerLaunchUtils.java:
/**
* Pull an Docker-Image if is not locally available.
*
* @param monitor A Monitor to show progress
* @param connectionName The name of the connection
* @param imageName The image to pull
* @return Status.OK on success, Status.CANCEL_STATUS if cancelled, and Status.ERROR if an error occurs
*
*/
public static @NonNull IStatus provideDockerImage(IProgressMonitor monitor, @NonNull final String connectionName,
@NonNull String imageName) {
// Try to pull image, if necessary
final var connection = (IDockerConnection4) DockerConnectionManager.getInstance()
.getConnectionByName(connectionName);
if (connection == null) {
// This is unlikely to happen, but who knows
return new Status(Status.ERROR, DockerLaunchUIPlugin.PLUGIN_ID,
NLS.bind(Messages.ContainerCommandLauncher_pullerr_noConn, imageName, connectionName));
}
...
Describe the bug
Building in docker is NOT working!
To Reproduce
Created and run a docker image with
docker run -it --name=example --mount type=bind,source=${PWD},target=/src example/example_build:0.1 bash
Expected behavior
Build in docker works.
Screenshots
Please see, "My docker" is my local instance of docker. Also, please see "example" is in running stage.
In project's properties, I ticked "Build inside Docker image":
However, when I try building, I got an error:
Unable to find Docker connection:example/example_build:0.1
Version Information (please complete the following information):
The text was updated successfully, but these errors were encountered: