diff --git a/static/js/app.js b/static/js/app.js index 1f7eb060f..c55cf5eb5 100644 --- a/static/js/app.js +++ b/static/js/app.js @@ -2464,7 +2464,10 @@ quayApp.directive('dockerAuthDialog', function (Config) { }, controller: function($scope, $element) { var updateCommand = function() { - $scope.command = 'docker login -e="." -u="' + $scope.username + + var escape = function(v) { + return v.replace('$', '\\$'); + }; + $scope.command = 'docker login -e="." -u="' + escape($scope.username) + '" -p="' + $scope.token + '" ' + Config['SERVER_HOSTNAME']; };