Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »


sudo curl --unix-socket /var/run/docker.sock -H "Content-Type: application/json" \

    -d '{"Image": "alpine", "Cmd": ["echo", "hello world"]}' \

    -X POST http:/v1.24/containers/create

  {"Id":"1c6594faf5","Warnings":null}


  sudo curl --unix-socket /var/run/docker.sock -X POST http:/v1.24/containers/1c6594faf5/start


  sudo curl --unix-socket /var/run/docker.sock -X POST http:/v1.24/containers/1c6594faf5/wait

  {"StatusCode":0}


  sudo curl --unix-socket /var/run/docker.sock "http:/v1.24/containers/1c6594faf5/logs?stdout=1"

  hello world

>>>> jlk@ubuntu:~$ sudo docker logs efaf2bc9883f

hello world

  • No labels