Generate shorter container IDs for readability

Upstream-commit: dfd15fbee87cc954d85884b1ce99ffacf7721a74
Component: engine
This commit is contained in:
Solomon Hykes
2013-01-29 03:25:00 -08:00
parent 8805019aeb
commit 47885a98e3
+1 -1
View File
@@ -526,7 +526,7 @@ func (srv *Server) CmdLogs(stdin io.ReadCloser, stdout io.Writer, args ...string
func (srv *Server) CreateContainer(img *image.Image, tty bool, openStdin bool, comment string, cmd string, args ...string) (*docker.Container, error) {
id := future.RandomId()
id := future.RandomId()[:8]
container, err := srv.containers.Create(id, cmd, args, img.Layers,
&docker.Config{Hostname: id, Tty: tty, OpenStdin: openStdin})
if err != nil {