---
title: "Discussion on \"Docker\" | Hashnode"
description: "Discussion on \"Docker\". Copy a file to a docker container\ndocker cp fileName.json mongodb1:/fileName.json\n\nConnect on the container terminal\ndocker exec -it mongodb1 /bin/sh"
url: "https://hashnode.com/posts/docker/660ac2e958bce20d9caf7980"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Docker](https://wcds.hashnode.dev/docker?utm_source=hashnode&utm_medium=feed)

Copy a file to a docker container docker cp fileName.json mongodb1:/fileName.json Connect on the container terminal docker exec -it mongodb1 /bin/sh

Apr 1, 2024 · 1 min read · wcds.hashnode.dev  
Read the article

-   [#docker](https://hashnode.com/tag/docker)

## Written by

[WellWCDS](https://hashnode.com/@wcds)

@wcds

  
[View profile](https://hashnode.com/@wcds)

Software Developer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
