Skip to content

Shkodenko Taras

web development and system administration of Linux

  • Drawing
  • PHP Mentorship Program
  • Privacy Policy
  • About

Docker: copy file from host to container

June 24, 2022 ~ tadmin

To copy file from you host computer to a container use command docker cp

docker cp file.txt ${CONTAINER_ID}:/root/file.txt

Replace ${CONTAINER_ID} with ID of the container. You can get container name using command:

docker ps -a

Docker cp documentation.

Share This Blog Post

Posted in Docker docker

Published by tadmin

View all posts by tadmin

Post navigation

‹ PreviousApache 2.4 virtual host config for a WordPress CMS
Next ›Git: how to stash / unstash not commited changes

Support My Work!

Categories

  • Apache
  • CMS
  • Databases
  • Docker
  • Drupal
  • Git
  • Laravel
  • Lean
  • Linux
  • macOs
  • Magento
  • MySQL | MariaDB
  • Nginx
  • PHP
  • Pimcore CMS
  • Plesk
  • PostgreSQL
  • Server configuration
  • Symfony
  • Uncategorized
  • WordPress
  • Yii2
DigitalOcean Referral Badge

Tags

.htaccess Apache archive array bash certificate composer diff docker Drupal ffmpeg find git git best practices grep IPTables Laravel Laravel best practices Laravel tips Linux Linux file management MySQL mysqldump Odin openssl PHP PHP development Pimcore Plesk PostgreSQL ProFTPD script Security sed shell software development ssh ssl Symfony system administration tar ubuntu web development wordpress zip

Donations

You can support this project if you like what I'm writing

Recent Posts

  • PHP 31-th Anniversary โ€” A Quick Look at the Evolution of the Language Code from Version 7.4 to 8.4
  • Gates vs Policies in Laravel: Whatโ€™s the Difference and When Should You Use Each?
  • How to Create a tar+bzip2 Website Archive While Ignoring VCS Folders (.git and others)
  • ๐Ÿณ Basic Docker Workflow Using PHP + MySQL + Laravel
  • ๐ŸŽ‰ Happy Birthday, Linus Torvalds!
  • Role-Based Access Control (RBAC) in Modern Laravel
  • New Digital Product: Creational Design Patterns (GoF) for Modern PHP Developers

Search

  • GitHub
  • YouTube
  • Telegram
  • Patreon
  • Instagram
  • Pinterest
Generate secure random passwords
Proudly powered by WordPress ~ Theme: Shcom-child by Taras Shkodenko.