Docker: Accept more ways to identify a docker FilePath

Accept (percent-encoded) repo:tag, the image id or the device id as
host() part of a docker FilePath.

Task-number: QTCREATORBUG-26856
Change-Id: I27d374be31d54bab77d129e19884b7f7fd93daa0
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
hjk
2022-02-24 10:14:25 +01:00
parent 4ca780ccb3
commit 32590af686
2 changed files with 32 additions and 18 deletions

View File

@@ -37,10 +37,8 @@ namespace Internal {
class DockerDeviceData
{
public:
// Used for "docker run" and for host parts of FilePaths
QString dockerId() const;
// Used as autodetection source string
QString autodetectId() const { return "docker:" + dockerId(); }
// Used for "docker run"
QString repoAndTag() const;
QString imageId;
QString repo;