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
I am a Support Engineer from Atlassian and I'm working with a customer on an issue.
The following docker inspect command consistently does not seem to work on Windows: docker.exe inspect --format='{{(index (index .NetworkSettings.Ports "3000/tcp") 0).HostPort}}' $INSTANCE_ID.
The command returns the following error:
Template parsing error: template: :1: unexpected "/" in operand
In docker-archive/toolbox#433, there was a suggestion to switch the quotes from single to double, but that does not work, returning:
Template parsing error: template: :1: malformed character constant: '3000/tcp'
The issue was tested on CentOS and it does work there.
I apologize if this is a duplicate issue, I was unable to find an existing one.
Thanks in advance!
The text was updated successfully, but these errors were encountered:
Hi team, a quick update from our side. From our testing, it looks like escaping the internal quotes works: docker.exe inspect --format="{{(index (index .NetworkSettings.Ports \"3000/tcp\") 0).HostPort}}" $INSTANCE_ID
Hi team,
I am a Support Engineer from Atlassian and I'm working with a customer on an issue.
The following
docker inspect
command consistently does not seem to work on Windows:docker.exe inspect --format='{{(index (index .NetworkSettings.Ports "3000/tcp") 0).HostPort}}' $INSTANCE_ID
.The command returns the following error:
In docker-archive/toolbox#433, there was a suggestion to switch the quotes from single to double, but that does not work, returning:
The issue was tested on CentOS and it does work there.
I apologize if this is a duplicate issue, I was unable to find an existing one.
Thanks in advance!
The text was updated successfully, but these errors were encountered: