Getting an “operation not supported” error when trying to RUN something while building a docker image

I’m trying to build a docker image with the following command:

docker build -f conf/Dockerfile -t my_app_name .

The Dockerfile starts with:

  • Application running within a docker container is not accessible?
  • Using Docker Environment Variable inside of Java
  • How to generate a certificate for AWS EC2 instance part of AWS ECS ( Docker)
  • Multiple dependent ? Dockerfiles building a LAMP container
  • Problems getting docker containers to see (ping) each other by name
  • WordPress NGINX conf routes back to Landing Page
  • FROM ubuntu:14.04
    
    COPY conf/pubkey pubkey
    RUN echo 'deb http://downloads.skewed.de/apt/trusty trusty universe' >> /etc/apt/sources.list \
      && apt-key add pubkey \
      && rm pubkey
    

    And it returns INFO[0000] operation not supported.

    Regardless of what I put after RUN (even RUN echo 1 fails)

    I tried running a shell in the intermediate docker image (docker run a7bb092… -it /bin/sh) but this just throws FATA[0000] Error response from daemon: Cannot start container a7bb092…: operation not supported

    How can I fix this?

  • Transferring Docker run script to compose file - postgres doesn't run?
  • asp.net mvc in container in an azure windows app service
  • How can a Docker image build locally, but not at remote destination?
  • how can I find docker image with specific tag in docker registry in docker command line?
  • How to auto start docker when synology restart
  • Can't connect to Postgres docker container from Golang container
  • 2 Solutions collect form web for “Getting an “operation not supported” error when trying to RUN something while building a docker image”

    Well, turns out that if your machine had a kernel update but you didn’t restart yet then docker freaks out. Restarting the machine fixed that. Oops.

    This can happen if you do not have CONFIG_VETH selected in your kernel or don’t have lxc and cgroup.

    $ zcat /proc/config.gz | grep VETH
    CONFIG_VETH=m
    

    https://github.com/docker/docker/issues/7246

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