Docker Error : Cannot use –lxc-conf with execdriver: native-0.2

My requirement is I want to provide Static IP for the container.

I use LXC-conf, such as the following link to set the IP DHCP / Static.

  • Application served by uWSGI with Supervisord from Docker
  • Dynamically Pull Docker Image using chef recipe
  • Docker with Nginx - Https not working
  • Bluemix: local Docker daemon is not reachable to authenticate it
  • nginx ipv6 communication with docker containers
  • How to configure SonarQube in a Docker container?
  • I’ve lakuakan namely

     docker run \
     --net="none" \ 
     --lxc-conf="lxc.network.type = veth" \ 
     --lxc-conf="lxc.network.ipv4 = 192.168.23.38" \
     --lxc-conf="lxc.network.ipv4.gateway = 192.168.23.1" \
     --lxc-conf="lxc.network.link = dkr01" \
     --lxc-conf="lxc.network.name = eth0" \
     --lxc-conf="lxc.network.flags = up" \
     --lxc-conf="lxc.network.veth.pair = sts" 
     -h sts \
     --name sts \
     -d ubuntu_erp:latest
    

    When executing the last syntax, an error “Error response from daemon: Cannot use –lxc-conf with execdriver: native-0.2”

     docker run \
     --net="none" \ 
     --lxc-conf="lxc.network.type = veth" \ 
     --lxc-conf="lxc.network.ipv4 = 192.168.23.38" \
     --lxc-conf="lxc.network.ipv4.gateway = 192.168.23.1" \
     --lxc-conf="lxc.network.link = dkr01" \
     --lxc-conf="lxc.network.name = eth0" \
     --lxc-conf="lxc.network.flags = up" \
     --lxc-conf="lxc.network.veth.pair = sts" 
     -h sts \
     --name sts \
     -d ubuntu_erp:latest
     Error response from daemon: Cannot use --lxc-conf with execdriver: native-0.2
    

    I ask for help, for what I need.

    Maybe of you who have a reliable docker, can help address my needs.
    Want to give a DHCP IP according to the local intranet.

  • 502 Bad Gateway when accessing virtual host via Jwilder's Nginx proxy
  • Woocommerce webhook debugging on nginx in a docker container
  • Profile my app with Blackfire container in Docker environment
  • Init Layer in Docker
  • How can I change the default assigned ip address for docker containers?
  • How to convert a Vagrantfile to a Dockerfile
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.