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.

  • How to use local docker images in Kubernetes?
  • Accessing a MariaDB in one Docker from another Docker
  • Anonymous pull on docker repo in artifactory
  • Docker `CMD a b c` VS `CMD [“a”, “b”, “c”]`
  • Using load testing app in docker
  • Accessing a server via script, both running inside the same 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.

  • Gunicorn graceful stopping with docker-compose
  • Using private svn+bower doesn't work in dockerfile
  • How to use docker python SDK in swarm context?
  • Creating a docker image from an existing enviornment
  • Xdebug with PHPStorm and a Docker container
  • run docker under supervisor, can not enable tty error
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.