On my fedora box, I followed the instructions from the official web page: https://docs.docker.com/installation/fedora/
sudo yum -y install docker sudo systemctl start docker sudo systemctl enable docker sudo docker run -i -t fedora /bin/bash
Once the new shell appears (bash), you can type for instance:
yum install ipython
Note that sudo does not work here (I presume that by default you have root permission).
You can now exit your docker container (exit)
Note that to start your fedora container it takes a fraction of a second ! Note also the size (250Mb) . To check that type:
sudo docker images