How can I make a local docker container?

I installed Docker and kitematic. I had VirtualBox before that and used many machines on Vbox. Docker is working, I can pull containers and other stuff like that. Like this link : https://docs.docker.com/mac/started/
I can add containers by:

<i> docker run docker/whalesay cowsay boo </i>

I want to know if there is any way that I can import some of my Vbox machines into docker as a Container locally?
I have ova and ovf file in my local pc. I don’t wanna get involved with online containers! Is there any way to accomplish this.
Thank you.

  • What is a good tool for geo-distributed docker management
  • Bitnami and Docker
  • Datastax Opscenter requires restart when JMX auth is enabled?
  • what is the correct way to set up puma, rails and nginx with docker?
  • Running docker with pgadmin on mac getting Error: Unable to initialize GTK+, is DISPLAY set properly?
  • Different behaviour between docker-compose volume mount on OSX and Linux
  • Docker communication between apps in separate containers
  • “correct” way to manage database schemas in docker
  • Why does bash script work depend on the size of the terminal window?
  • Docker 32-bit Image downloaded, but tells its a 64-bit architecture
  • Docker and Neo4J
  • How do you find volumes configured into the docker *image* itself?
  • One Solution collect form web for “How can I make a local docker container?”

    Looks like you have some confusion on the concept of a container.

    A container is not a virtual machine.

    You can’t import virtual machines into Docker. What you can do is build and run a Docker container which eliminates the need for a virtual machine (depending on your use case of course).

    You can find a good explanation about the difference between a container and a virtual machine here.

    TL;DR:

    Both virtual machines and containers allow you to run multiple applications on a shared hardware.

    When using virtual machines, the hardware is shared among all applications, however each application runs on a separate operating system.

    When using containers, both the hardware AND the operating system are shared, and each application runs in a separate container.

    This is in no way an exhaustive explanation regarding Docker containers – there are MANY more advantages to using Docker instead of a virtual machine (portability, consistency, infrastructure-as-code). This is just the main difference between them.

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