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.

  • Deploying Perl Docker Container to Elastic Beanstalk
  • Docker cache gradle dependencies
  • Docker “Jenkins” image can't access internet
  • Why orientDB connection to localhost of docker is refused
  • docker run registry error 301 response missing Location header
  • Deploying Golang web app static files with 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.

  • List files in exited container
  • Docker Swarm and self-signed Docker Registry
  • Running a script from a mongodb docker-container
  • Deis not creating a build when pushing application
  • IdentityServer4: How to load Signing Credential from Cert Store when in Docker
  • Is docker swarm suitable for scheduling batch jobs/small jobs?
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.