Docker create/start and --interactive option

  1. Is it correct to say that docker container create --interactive ubuntu is equal to docker container create -a STDIN -a STDOUT -a STDERR --interactive ubuntu?
  2. Is it correct to say that docker container start --interactive <container ID> is equal to docker container start --interactive --attach <container ID>?

I tested the following commands docker container create --interactive --name u8 ubuntu and docker container start --interactive u8 and I can properly interact with the bash shell.

You can check container configurations like this:

docker inspect --format '{{json .Config}}' <container name or id>

Replace <container name or id> with the name of a container or its id. You might want to pipe the result to jq to have a nice formatted output.

You can create all the variations you want, inspect their config and compare the resulting configs.

I am aware this does not directly answer your questions. It does something better: it shows you, how you can answer your questions yourself.