how to run a daemon process in docker container with API/v1.5?

I’m tring to run a daemon process in the docker container with API/1.5,and here is my POST request, and the containter is created successed while the command seemed run failed,what’s the problem here?pls give me some advance,thanks.

                    "PortSpecs": ["8080:8080"],
                    "Privileged": true,
                            "nc", "-l", "8080"

And here is the response:

  • running container from private registry with docker swarm
  • How to use docker to create linux images per user on the same domain
  • Transferring Docker run script to compose file - postgres doesn't run?
  • Unable to back up persistent storage container for docker MariaDB container
  • How to configure Docker mysql + aspnet
  • How to run at the same time two or more docker-compose files
  • HTTP/1.1 201 Created
    Content-Type: application/json
    Content-Length: 113
    Date: Sun, 29 Sep 2013 13:27:52 GMT
    {"Id":"9a880dcbbbda","Warnings":["Your kernel does not support memory swap capabilities. Limitation discarded."]}

    And I tested if the container is running with sudo docker ps -l and showed that:

    ID                  IMAGE               COMMAND                CREATED             STATUS              PORTS
    9a880dcbbbda        base:latest         nc -l 8080    33 seconds ago      Exit 0

  • Logging in to private docker registry v2 behind haproxy
  • Docker Compose volume doesn't persist files in subfolders
  • Using Docker Compose to connect to mysql running in another container
  • Docker run command on Bluemix does not allow to set environment variable correctly
  • How do I expose Kubernetes service to the internet?
  • Run a service automatically in a docker container
  • One Solution collect form web for “how to run a daemon process in docker container with API/v1.5?”

    The result includes a warning, but it is just a warning, not an error.

    It means that your system cannot limit the memory or swap allocated to the container, and therefore, the container will run without the memory or swap limitation. But other than that, it should be running fine.

    Is there anything indicating that the container is not running correctly?

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.