{"action":"closed","issue":{"url":"https://api.github.com/repos/swipely/docker-api/issues/309","labels_url":"https://api.github.com/repos/swipely/docker-api/issues/309/labels{/name}","comments_url":"https://api.github.com/repos/swipely/docker-api/issues/309/comments","events_url":"https://api.github.com/repos/swipely/docker-api/issues/309/events","html_url":"https://github.com/swipely/docker-api/issues/309","id":103416615,"number":309,"title":"The way to tag an image is very confused. ","user":{"login":"SydOps","id":8954908,"avatar_url":"https://avatars.githubusercontent.com/u/8954908?v=3","gravatar_id":"","url":"https://api.github.com/users/SydOps","html_url":"https://github.com/SydOps","followers_url":"https://api.github.com/users/SydOps/followers","following_url":"https://api.github.com/users/SydOps/following{/other_user}","gists_url":"https://api.github.com/users/SydOps/gists{/gist_id}","starred_url":"https://api.github.com/users/SydOps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SydOps/subscriptions","organizations_url":"https://api.github.com/users/SydOps/orgs","repos_url":"https://api.github.com/users/SydOps/repos","events_url":"https://api.github.com/users/SydOps/events{/privacy}","received_events_url":"https://api.github.com/users/SydOps/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-08-27T03:14:03Z","updated_at":"2015-08-31T00:13:26Z","closed_at":"2015-08-31T00:13:26Z","body":"For example: \r\n\r\n```\r\nirb(main):017:0> image = Docker::Image.create('fromImage' => 'alpine:3.2')\r\n=> #<Docker::Image:0x007fc0e1da44c8 @id=\"31f630c65071\", @info={\"id\"=>\"31f630c65071\", :headers=>{}}, @connection=#<Docker::Connection:0x007fc0e1bad750 @url=\"tcp://192.168.99.100:2376\", @options={\"...\"}>>\r\n\r\nirb(main):019:0> image.id\r\n=> \"31f630c65071\"\r\n```\r\n\r\nSo image has the id already. \r\n\r\nNormally if I need create a new tag on that image, I should be not required to provide repository name again, defaultly, it should be the image.id.\r\n\r\nBut when I try to tag it without `repo`, I got below error. \r\n\r\n```\r\nirb(main):014:0> image.tag('tag' => 'test1', force: true)\r\nDocker::Error::ServerError: Repository name can't be empty\r\n```\r\n\r\nSo we need a new feature to check if no `repo` provided, image.id will be used as default.\r\n\r\nI'd like to do the change, but not sure which files I need work on to add this feature, if you know, let me know. "}}