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 to access host DB from Docker container?
  • Why does the thrift docker image need go
  • Running atop in a docker stack
  • My boot2docker installation seems to not be working. What am I doing wrong?
  • How to get Docker host IP on Travis CI?
  • Getting “broken pipe” when building Docker image using boot2docker Mac
  • Create JSON using jq from pipe-separated keys and values in bash
  • Docker-Compose too many levels of symlinks with NFS
  • Setting Mesos DNS on ubuntu
  • How do I attach multiple containers directly to a physical interface?
  • Docker- How to use syslog to record logs on host machine?
  • How to access docker container service from outside world like from parent windows host machine
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.