Fixed : Docker error “docker: ‘network’ is not a docker command.”

When i was trying to create a new network interface for docker , it was throwing following error

Reason

Docker network feature was introduced in 1.9 release. Make sure your docker version is 1.9 or above.

How to upgrade Docker on Centos7?

The Docker installation package available in the official CentOS 7 repository may not be the latest version. To get the the latest Docker version, install it from docker official repo.

On Centos7 , Use following command to download and install Docker from official repo

Once installation has completed, start the Docker daemon:

Verify docker is running

Enable the service to start on reboot

 

Leave a Reply

Your email address will not be published. Required fields are marked *