Giter Site home page Giter Site logo

dockernotes's Introduction

DockerNotes

Frequently Used Docker Commands

Purpose Command/Description
List all containers docker ps -a
List all images docker images
View logs of a container docker logs <container_name>
Stop a running container docker stop <container_name>
Remove a container docker rm <container_name>
Remove an image docker rmi <image_name>
Copy files from container docker cp <container_name>:<path_within_container> <dest_path_in_host>
Copy files to container docker cp <src_path_in_host> <dest_container_name>:<path_within_container>
Cleaning up old images/networks Stop all containers. Then \n docker system prune -f
Log in to a running container docker exec -ti <container_name> sh
Check the contents of an image You have to create a container from the image to do so. Use the run command to start a container.\n docker run -ti --rm <image_name> sh

Permission Issues

Since there are volume mappings for server log directories to the host machine, the very first attempt to start the server might fail with the server unable to write logs. This can be easily fixed by changing the owner and(or) allowing appropriate permissions. By default, the log directories are mapped under the host directory /opt/docker/was-9.0.0-mq-9.0-npp-6.2

sudo chown -R iid:iid /opt/docker/was-9.0.0-mq-9.0-npp-6.2 && chmod -R 777 /opt/docker/was-9.0.0-mq-9.0-npp-6.2

dockernotes's People

Contributors

malleswar-reddy avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.