Increase your workflow on Ansible lab

Increase your workflow on Ansible lab

Did you know? You can edit your playbooks in Ansible Lab with VS Code.

Your persistent data in the container is located in specific path on the running host.

For this, you need to open that specific path on the running host via VS Code.

Bu resim i?in metin sa?lanmad?

For example: The folder called "ansible-project-main_ansible-data" contains files, folders that you created on container. All changes in this folder will also affect the folder in the container. The path to this folder depends on the type of OS you are using. But usually:

  • Windows - "\\wsl$\docker-desktop-data\version-pack-data\community\docker\volumes"
  • Linux - "/var/lib/docker/volumes"

For Mac, it's different from other OS. Personally I have not tested these steps on mac. But I hope it will work :)

  • First of all we need to "screen into" the Docker driver by executing a command:? screen ~/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/tty
  • You should see a blank screen, just press?Enter?, and after a while, you should see a command line prompt: docker-desktop:~#
  • Now you're inside Docker's VM and you can cd into volumes dir by typing:?cd /var/lib/docker/volumes

After accessing the path. Just follow the steps in the pictures attached below.

Bu resim i?in metin sa?lanmad?


Bu resim i?in metin sa?lanmad?

The folder's name under the "volumes" folder may differ from this example, but usually the folder name starts with the name of the folder containing the "docker-compose.yaml" file. However, the "_data" folder containing your persistent data is located under the volume folder. You can open this folder via VS Code for editing. i.e. -

Bu resim i?in metin sa?lanmad?
Bu resim i?in metin sa?lanmad?

After all, You can increase workflow with this feature.

I hope you will enjoy it!

要查看或添加评论,请登录

Sabir Rajabov的更多文章

  • Centralize your logs with ELK Stack

    Centralize your logs with ELK Stack

    Centralizing logs with the ELK Stack is a powerful way to streamline and optimize the management of log data within an…

  • Monitor your Docker containers with Prometheus and Grafana.

    Monitor your Docker containers with Prometheus and Grafana.

    Grafana and Prometheus are one of the technology world's powerful monitoring and analytics duo. So, what is Prometheus…

  • How to secure OpenSSH Server

    How to secure OpenSSH Server

    OpenSSH (Open Secure Shell) is a widely used open-source implementation of the SSH (Secure Shell) protocol. The SSH…

  • Build your CI with Gitlab Runner and Gitlab-CI

    Build your CI with Gitlab Runner and Gitlab-CI

    Hello everyone, Today we will talk about how can you prepare your application for build/testing with GitLab-CI and…

  • DevOps v? ona yana?ma t?rzi

    DevOps v? ona yana?ma t?rzi

    Bir ?vv?lki postumda bu metodologiyaya qar?? bir s?hv yana?ma oldu?u bar?sind? m?vzuya toxunmu?dum. Bu yaz?da is? bu…

    1 条评论

社区洞察

其他会员也浏览了