Docker services in image not launching

I am new to docker. I’ve prepared a docker image. On it, I’ve installed application as user root. On launch, the root .bashrc contains some lines that be execute. On the machine where I prepare the image, all was running correcting. I saved the image as a tar with the command docker save to a tar file. Using the tar file, I loaded the image on another machine. Using docker, when I start the image using the command docker run, it doesn’t execute the root .bashrc. When I execute it manually using source .bashrc it executes but there are services which fails. Any idea why this is happening ? Because I was thinking that the moment you have the image, you load the image in a container, it is expected to work similarly everywhere.

  • How many WordPress instances can i run on Google Compute engine in a single google cloud platform project.
  • Update cURL php extension on php:7.0-fpm docker container
  • Get all running Docker containers whose image is derived from a specific image
  • Jersey Grizzly HTTP Server shutdown inside container docker
  • How to update Kafka config file with Docker IP address
  • Dockerized Nginx upstream error serving separate Docker container with Flask/uWSGI app
  • https is not working on httpd docker container
  • Docker and pip requirements
  • Getting error when running mocha test with Xvfb and firefox headlessly in a docker container
  • Docker Mysql container root password [mysqld listens port 0]
  • How to set docker back to default configuration
  • Can't reach a local website through apache in a docker container (windows & docker toolbox)
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.