Tuesday, August 7, 2018

docker

  1. sudo docker pull netflixoss/eureka generates the following error
  2.  Using default tag: latest
    Error response from daemon: manifest for netflixoss/eureka:latest not found
    solution is ->
  3. sudo docker pull netflixoss/eureka:1.3.1
    1. where 1.3.1 is the tag
  4. following is the way to run i.e create a container:
  5. sudo docker run netflixoss/eureka:1.3.1
  6. the problem is unable to connect to the port 
  7. https://stackoverflow.com/questions/47612400/docker-run-unable-to-access-jar-file 
  8. https://bartwullems.blogspot.com/2017/03/docker-error-err
  9. http://blog.thoward37.me/articles/where-are-docker-images-stored/
  10. https://stackoverflow.com/questions/25101312/does-all-running-docker-containers-have-a-separate-process-id
  11.  sudo docker container ls -> will all the running containers
  12. docker --help//help commands
  13. how to locate Dockerfile of pulled docker image ?
  14. docker-compose.yml
  15.  If you need to customize an image image, you should create a Dockerfile, with the first line:
    FROM ubuntu
     

  16. Yes, every docker container will have a different PID on your host machine.
    You can get a docker containers PID by doing:
    docker inspect --format '{{ .State.Pid }}' CONTAINER_ID
    
    If you kill the process on your host, your docker container will die.

    example
    sudo docker inspect --format '{{ .State.Pid }}' 18f966e5228f


No comments:

Post a Comment