mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Generate shorter container IDs for readability
This commit is contained in:
parent
c7a944caf2
commit
dfd15fbee8
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue