0

How do I run on solaris, a linux based docker-image (e.g nginx image)? I expect similar to running a nginx-image on windows machines.

e.g Can I have a virtualbox-linux in solaris-os, and then run docker run nginx? What are the ways?

Espresso
  • 5,378
  • 4
  • 35
  • 66
  • Similar: [Is it possible to install docker on Sparc machines?](https://stackoverflow.com/questions/52947908/is-it-possible-to-install-docker-on-sparc-machines) – David Maze May 30 '23 at 14:21

2 Answers2

1

There is currently no support for Docker on Solaris.

Docker containers rely on their hosts kernel, that's why Docker only works on linux systems or if the operating system provides a linux kernel. (WSL makes Docker work on Windows)

Ascendise
  • 189
  • 1
  • 10
  • 1
    Traditionally you've "run Docker" on non-Linux hosts by running a Linux virtual machine, and tools like Docker Machine for that are still around. This will only get you so far if you're on Sparc hardware and can't run x86 or ARM images. – David Maze May 30 '23 at 14:21
0

I'm not sure about your question but maybe the --platform might help you

You can use it in the docker run command if your host is multi-platform capable https://docs.docker.com/engine/reference/commandline/run/

--platform      Set platform if server is multi-platform capable

e.g.

docker run -d nginx --platform arm64 ...

Hope this helps!

Hernan Garcia
  • 1,416
  • 1
  • 13
  • 24